{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "dd4cf9cd",
   "metadata": {
    "pycharm": {
     "is_executing": true,
     "name": "#%%\n"
    },
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "import re\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Map,Bar,Line,Grid,Liquid,Scatter,Pie\n",
    "from pyecharts.commons.utils import JsCode\n",
    "from pyecharts.globals import SymbolType"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "12ac6443",
   "metadata": {
    "pycharm": {
     "name": "#%% md\n"
    }
   },
   "source": [
    "## 数据准备"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "8fce26aa",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    },
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ISO code</th>\n",
       "      <th>Country</th>\n",
       "      <th>Incidence</th>\n",
       "      <th>F. Incidence</th>\n",
       "      <th>M. Incidence</th>\n",
       "      <th>Most common site</th>\n",
       "      <th>Mortality</th>\n",
       "      <th>F. Mortailty</th>\n",
       "      <th>M. Mortality</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>AFG</td>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>22817</td>\n",
       "      <td>12289</td>\n",
       "      <td>10528</td>\n",
       "      <td>Breast</td>\n",
       "      <td>16018</td>\n",
       "      <td>8015</td>\n",
       "      <td>8003</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>ALB</td>\n",
       "      <td>Albania</td>\n",
       "      <td>7037</td>\n",
       "      <td>2842</td>\n",
       "      <td>4195</td>\n",
       "      <td>Lung</td>\n",
       "      <td>3978</td>\n",
       "      <td>1319</td>\n",
       "      <td>2659</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>DZA</td>\n",
       "      <td>Algeria</td>\n",
       "      <td>58418</td>\n",
       "      <td>31090</td>\n",
       "      <td>27328</td>\n",
       "      <td>Breast</td>\n",
       "      <td>32802</td>\n",
       "      <td>14900</td>\n",
       "      <td>17902</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>AGO</td>\n",
       "      <td>Angola</td>\n",
       "      <td>20327</td>\n",
       "      <td>11553</td>\n",
       "      <td>8774</td>\n",
       "      <td>Cervixuteri</td>\n",
       "      <td>12599</td>\n",
       "      <td>6914</td>\n",
       "      <td>5685</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>ARG</td>\n",
       "      <td>Argentina</td>\n",
       "      <td>130878</td>\n",
       "      <td>68551</td>\n",
       "      <td>62327</td>\n",
       "      <td>Breast</td>\n",
       "      <td>70074</td>\n",
       "      <td>34332</td>\n",
       "      <td>35742</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>180</th>\n",
       "      <td>VEN</td>\n",
       "      <td>Venezuela</td>\n",
       "      <td>58424</td>\n",
       "      <td>31387</td>\n",
       "      <td>27037</td>\n",
       "      <td>Breast</td>\n",
       "      <td>31177</td>\n",
       "      <td>15928</td>\n",
       "      <td>15249</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>181</th>\n",
       "      <td>VNM</td>\n",
       "      <td>Vietnam</td>\n",
       "      <td>182563</td>\n",
       "      <td>83647</td>\n",
       "      <td>98916</td>\n",
       "      <td>Liver</td>\n",
       "      <td>122690</td>\n",
       "      <td>48209</td>\n",
       "      <td>74481</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>182</th>\n",
       "      <td>YEM</td>\n",
       "      <td>Yemen</td>\n",
       "      <td>16476</td>\n",
       "      <td>9317</td>\n",
       "      <td>7159</td>\n",
       "      <td>Breast</td>\n",
       "      <td>12103</td>\n",
       "      <td>6436</td>\n",
       "      <td>5667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>183</th>\n",
       "      <td>ZMB</td>\n",
       "      <td>Zambia</td>\n",
       "      <td>13831</td>\n",
       "      <td>7863</td>\n",
       "      <td>5968</td>\n",
       "      <td>Cervixuteri</td>\n",
       "      <td>8672</td>\n",
       "      <td>4881</td>\n",
       "      <td>3791</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>184</th>\n",
       "      <td>ZWE</td>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>16083</td>\n",
       "      <td>10339</td>\n",
       "      <td>5744</td>\n",
       "      <td>Cervixuteri</td>\n",
       "      <td>10676</td>\n",
       "      <td>6730</td>\n",
       "      <td>3946</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>185 rows × 9 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "    ISO code      Country  Incidence  F. Incidence  M. Incidence  \\\n",
       "0        AFG  Afghanistan      22817         12289         10528   \n",
       "1        ALB      Albania       7037          2842          4195   \n",
       "2        DZA      Algeria      58418         31090         27328   \n",
       "3        AGO       Angola      20327         11553          8774   \n",
       "4        ARG    Argentina     130878         68551         62327   \n",
       "..       ...          ...        ...           ...           ...   \n",
       "180      VEN    Venezuela      58424         31387         27037   \n",
       "181      VNM      Vietnam     182563         83647         98916   \n",
       "182      YEM        Yemen      16476          9317          7159   \n",
       "183      ZMB       Zambia      13831          7863          5968   \n",
       "184      ZWE     Zimbabwe      16083         10339          5744   \n",
       "\n",
       "    Most common site  Mortality  F. Mortailty  M. Mortality  \n",
       "0             Breast      16018          8015          8003  \n",
       "1               Lung       3978          1319          2659  \n",
       "2             Breast      32802         14900         17902  \n",
       "3        Cervixuteri      12599          6914          5685  \n",
       "4             Breast      70074         34332         35742  \n",
       "..               ...        ...           ...           ...  \n",
       "180           Breast      31177         15928         15249  \n",
       "181            Liver     122690         48209         74481  \n",
       "182           Breast      12103          6436          5667  \n",
       "183      Cervixuteri       8672          4881          3791  \n",
       "184      Cervixuteri      10676          6730          3946  \n",
       "\n",
       "[185 rows x 9 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_world = pd.read_csv('./data/cancer_world.csv')\n",
    "df_world"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "80555a48",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['Afghanistan', 22817],\n",
       " ['Albania', 7037],\n",
       " ['Algeria', 58418],\n",
       " ['Angola', 20327],\n",
       " ['Argentina', 130878],\n",
       " ['Armenia', 9261],\n",
       " ['Australia', 200021],\n",
       " ['Austria', 48241],\n",
       " ['Azerbaijan', 16316],\n",
       " ['Bahamas', 876],\n",
       " ['Bahrain', 1215],\n",
       " ['Bangladesh', 156775],\n",
       " ['Barbados', 1151],\n",
       " ['Belarus', 41817],\n",
       " ['Belgium', 83267],\n",
       " ['Belize', 395],\n",
       " ['Benin', 6747],\n",
       " ['Bhutan', 572],\n",
       " ['Bolivia', 15817],\n",
       " ['Bosnia and Herz.', 14673],\n",
       " ['Botswana', 2010],\n",
       " ['Brazil', 592212],\n",
       " ['BruneiDarussalam', 987],\n",
       " ['Bulgaria', 36451],\n",
       " ['Burkina Faso', 12045],\n",
       " ['Burundi', 7929],\n",
       " ['CaboVerde', 825],\n",
       " ['Cambodia', 18375],\n",
       " ['Cameroon', 20745],\n",
       " ['Canada', 274364],\n",
       " ['Central African Rep.', 2675],\n",
       " ['Chad', 8575],\n",
       " ['Chile', 54227],\n",
       " ['China', 4568754],\n",
       " ['Colombia', 113221],\n",
       " ['Comoros', 609],\n",
       " ['Dem. Rep. Congo', 48839],\n",
       " ['Congo', 2478],\n",
       " ['Costa Rica', 13139],\n",
       " [\"C?te d'Ivoire\", 17300],\n",
       " ['Croatia', 26092],\n",
       " ['Cuba', 46794],\n",
       " ['Cyprus', 5241],\n",
       " ['Czech Rep.', 67003],\n",
       " ['Denmark', 42891],\n",
       " ['Djibouti', 765],\n",
       " ['Dominican Rep.', 19816],\n",
       " ['Ecuador', 29273],\n",
       " ['Egypt', 134632],\n",
       " ['El Salvador', 9626],\n",
       " ['Eq. Guinea', 927],\n",
       " ['Eritrea', 2408],\n",
       " ['Estonia', 7888],\n",
       " ['Eswatini', 992],\n",
       " ['Ethiopia', 77352],\n",
       " ['Fiji', 1487],\n",
       " ['Finland', 35638],\n",
       " ['France', 467965],\n",
       " ['France,Guadeloupe', 2127],\n",
       " ['France,LaR�union', 2965],\n",
       " ['France,Martinique', 2156],\n",
       " ['New Caledonia', 1175],\n",
       " ['FrenchGuiana', 564],\n",
       " ['FrenchPolynesia', 861],\n",
       " ['Gabon', 1750],\n",
       " ['GazaStripandWestBank', 4779],\n",
       " ['Georgia', 13181],\n",
       " ['Germany', 628519],\n",
       " ['Ghana', 24009],\n",
       " ['Greece', 64530],\n",
       " ['Guam', 417],\n",
       " ['Guatemala', 16686],\n",
       " ['Guinea', 7871],\n",
       " ['Guinea-Bissau', 1127],\n",
       " ['Guyana', 1148],\n",
       " ['Haiti', 12404],\n",
       " ['Honduras', 10628],\n",
       " ['Hungary', 66874],\n",
       " ['Iceland', 1681],\n",
       " ['India', 1324413],\n",
       " ['Indonesia', 396914],\n",
       " ['Iran', 131191],\n",
       " ['Iraq', 33873],\n",
       " ['Ireland', 31855],\n",
       " ['Israel', 28704],\n",
       " ['Italy', 415269],\n",
       " ['Jamaica', 7197],\n",
       " ['Japan', 1028658],\n",
       " ['Jordan', 11559],\n",
       " ['Kazakhstan', 35366],\n",
       " ['Kenya', 42116],\n",
       " ['Dem. Rep. Korea', 57656],\n",
       " ['Korea', 230317],\n",
       " ['Kuwait', 3842],\n",
       " ['Kyrgyzstan', 7075],\n",
       " ['Lao PDR', 9133],\n",
       " ['Latvia', 12373],\n",
       " ['Lebanon', 11589],\n",
       " ['Lesotho', 1876],\n",
       " ['Liberia', 3552],\n",
       " ['Libya', 7661],\n",
       " ['Lithuania', 17073],\n",
       " ['Luxembourg', 3346],\n",
       " ['Madagascar', 20681],\n",
       " ['Malawi', 17936],\n",
       " ['Malaysia', 48639],\n",
       " ['Maldives', 496],\n",
       " ['Mali', 14185],\n",
       " ['Malta', 2500],\n",
       " ['Mauritania', 3079],\n",
       " ['Mauritius', 3050],\n",
       " ['Mexico', 195499],\n",
       " ['Mongolia', 5714],\n",
       " ['Montenegro', 3184],\n",
       " ['Morocco', 59370],\n",
       " ['Mozambique', 25446],\n",
       " ['Myanmar', 74593],\n",
       " ['Namibia', 3345],\n",
       " ['Nepal', 20508],\n",
       " ['New Zealand', 35934],\n",
       " ['Nicaragua', 7992],\n",
       " ['Niger', 9787],\n",
       " ['Nigeria', 124815],\n",
       " ['Macedonia', 7632],\n",
       " ['Norway', 34902],\n",
       " ['Oman', 3713],\n",
       " ['Pakistan', 178388],\n",
       " ['Panama', 7681],\n",
       " ['Papua New Guinea', 12159],\n",
       " ['Paraguay', 12920],\n",
       " ['Peru', 69849],\n",
       " ['Philippines', 153751],\n",
       " ['Poland', 204575],\n",
       " ['Portugal', 60467],\n",
       " ['Puerto Rico', 13080],\n",
       " ['Qatar', 1482],\n",
       " ['Moldova', 14306],\n",
       " ['Romania', 98886],\n",
       " ['Russia', 591371],\n",
       " ['Rwanda', 8835],\n",
       " ['SaintLucia', 449],\n",
       " ['Samoa', 374],\n",
       " ['SaoTomeandPrincipe', 151],\n",
       " ['Saudi Arabia', 27885],\n",
       " ['Senegal', 11317],\n",
       " ['Serbia', 49043],\n",
       " ['Sierra Leone', 4708],\n",
       " ['Singapore', 23632],\n",
       " ['Slovakia', 30316],\n",
       " ['Slovenia', 14180],\n",
       " ['Solomon Is.', 606],\n",
       " ['Somalia', 10134],\n",
       " ['South Africa', 108168],\n",
       " ['S. Sudan', 6312],\n",
       " ['Spain', 282421],\n",
       " ['Sri Lanka', 29604],\n",
       " ['Sudan', 27382],\n",
       " ['Suriname', 1056],\n",
       " ['Sweden', 62494],\n",
       " ['Switzerland', 60483],\n",
       " ['Syria', 20959],\n",
       " ['Tajikistan', 5722],\n",
       " ['Tanzania', 40464],\n",
       " ['Thailand', 190636],\n",
       " ['Netherlands', 132014],\n",
       " ['TheRepublicoftheGambia', 1035],\n",
       " ['Timor-Leste', 814],\n",
       " ['Togo', 5208],\n",
       " ['Trinidad and Tobago', 3919],\n",
       " ['Tunisia', 19446],\n",
       " ['Turkey', 233834],\n",
       " ['Turkmenistan', 6897],\n",
       " ['Uganda', 34008],\n",
       " ['Ukraine', 162594],\n",
       " ['United Arab Emirates', 4807],\n",
       " ['United Kingdom', 457960],\n",
       " ['United States', 2281658],\n",
       " ['Uruguay', 15757],\n",
       " ['Uzbekistan', 32019],\n",
       " ['Vanuatu', 231],\n",
       " ['Venezuela', 58424],\n",
       " ['Vietnam', 182563],\n",
       " ['Yemen', 16476],\n",
       " ['Zambia', 13831],\n",
       " ['Zimbabwe', 16083]]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 地图数据 - 1\n",
    "map_inum = df_world[['Country','Incidence']].values.tolist()\n",
    "map_inum"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "1faff8e6",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['Afghanistan', 16018],\n",
       " ['Albania', 3978],\n",
       " ['Algeria', 32802],\n",
       " ['Angola', 12599],\n",
       " ['Argentina', 70074],\n",
       " ['Armenia', 6096],\n",
       " ['Australia', 48236],\n",
       " ['Austria', 22495],\n",
       " ['Azerbaijan', 10466],\n",
       " ['Bahamas', 467],\n",
       " ['Bahrain', 593],\n",
       " ['Bangladesh', 108990],\n",
       " ['Barbados', 743],\n",
       " ['Belarus', 21281],\n",
       " ['Belgium', 30079],\n",
       " ['Belize', 213],\n",
       " ['Benin', 4662],\n",
       " ['Bhutan', 456],\n",
       " ['Bolivia', 9935],\n",
       " ['Bosnia and Herz.', 9209],\n",
       " ['Botswana', 1112],\n",
       " ['Brazil', 259949],\n",
       " ['BruneiDarussalam', 434],\n",
       " ['Bulgaria', 19460],\n",
       " ['Burkina Faso', 8695],\n",
       " ['Burundi', 5701],\n",
       " ['CaboVerde', 488],\n",
       " ['Cambodia', 12638],\n",
       " ['Cameroon', 13199],\n",
       " ['Canada', 86684],\n",
       " ['Central African Rep.', 1957],\n",
       " ['Chad', 6083],\n",
       " ['Chile', 28584],\n",
       " ['China', 3002899],\n",
       " ['Colombia', 54987],\n",
       " ['Comoros', 411],\n",
       " ['Dem. Rep. Congo', 34412],\n",
       " ['Congo', 1595],\n",
       " ['Costa Rica', 6028],\n",
       " [\"C?te d'Ivoire\", 14326],\n",
       " ['Croatia', 27189],\n",
       " ['Cuba', 2457],\n",
       " ['Cyprus', 27468],\n",
       " ['Czech Rep.', 11760],\n",
       " ['Denmark', 17348],\n",
       " ['Djibouti', 527],\n",
       " ['Dominican Rep.', 12107],\n",
       " ['Ecuador', 15123],\n",
       " ['Egypt', 89042],\n",
       " ['El Salvador', 5301],\n",
       " ['Eq. Guinea', 592],\n",
       " ['Eritrea', 1670],\n",
       " ['Estonia', 4009],\n",
       " ['Eswatini', 613],\n",
       " ['Ethiopia', 51865],\n",
       " ['Fiji', 825],\n",
       " ['Finland', 13392],\n",
       " ['France', 185621],\n",
       " ['France,Guadeloupe', 845],\n",
       " ['France,LaR�union', 1523],\n",
       " ['France,Martinique', 881],\n",
       " ['New Caledonia', 464],\n",
       " ['FrenchGuiana', 219],\n",
       " ['FrenchPolynesia', 479],\n",
       " ['Gabon', 1030],\n",
       " ['GazaStripandWestBank', 2895],\n",
       " ['Georgia', 8215],\n",
       " ['Germany', 252065],\n",
       " ['Ghana', 15802],\n",
       " ['Greece', 33166],\n",
       " ['Guam', 287],\n",
       " ['Guatemala', 9609],\n",
       " ['Guinea', 5888],\n",
       " ['Guinea-Bissau', 836],\n",
       " ['Guyana', 565],\n",
       " ['Haiti', 9245],\n",
       " ['Honduras', 6378],\n",
       " ['Hungary', 32868],\n",
       " ['Iceland', 641],\n",
       " ['India', 851678],\n",
       " ['Indonesia', 234511],\n",
       " ['Iran', 79136],\n",
       " ['Iraq', 19786],\n",
       " ['Ireland', 10385],\n",
       " ['Israel', 13050],\n",
       " ['Italy', 174759],\n",
       " ['Jamaica', 4576],\n",
       " ['Japan', 420124],\n",
       " ['Jordan', 6190],\n",
       " ['Kazakhstan', 20959],\n",
       " ['Kenya', 27092],\n",
       " ['Dem. Rep. Korea', 39963],\n",
       " ['Korea', 88597],\n",
       " ['Kuwait', 1719],\n",
       " ['Kyrgyzstan', 4680],\n",
       " ['Lao PDR', 6208],\n",
       " ['Latvia', 5827],\n",
       " ['Lebanon', 6438],\n",
       " ['Lesotho', 1256],\n",
       " ['Liberia', 2603],\n",
       " ['Libya', 4750],\n",
       " ['Lithuania', 8168],\n",
       " ['Luxembourg', 1170],\n",
       " ['Madagascar', 13837],\n",
       " ['Malawi', 12454],\n",
       " ['Malaysia', 29530],\n",
       " ['Maldives', 264],\n",
       " ['Mali', 10234],\n",
       " ['Malta', 966],\n",
       " ['Mauritania', 2121],\n",
       " ['Mauritius', 1504],\n",
       " ['Mexico', 90222],\n",
       " ['Mongolia', 4469],\n",
       " ['Montenegro', 1765],\n",
       " ['Morocco', 35265],\n",
       " ['Mozambique', 18014],\n",
       " ['Myanmar', 52941],\n",
       " ['Namibia', 1876],\n",
       " ['Nepal', 13629],\n",
       " ['New Zealand', 10508],\n",
       " ['Nicaragua', 4560],\n",
       " ['Niger', 7382],\n",
       " ['Nigeria', 78899],\n",
       " ['Macedonia', 4224],\n",
       " ['Norway', 11980],\n",
       " ['Oman', 2029],\n",
       " ['Pakistan', 117149],\n",
       " ['Panama', 3760],\n",
       " ['Papua New Guinea', 7276],\n",
       " ['Paraguay', 6565],\n",
       " ['Peru', 34976],\n",
       " ['Philippines', 92606],\n",
       " ['Poland', 119319],\n",
       " ['Portugal', 30168],\n",
       " ['Puerto Rico', 5570],\n",
       " ['Qatar', 704],\n",
       " ['Moldova', 8351],\n",
       " ['Romania', 54486],\n",
       " ['Russia', 312122],\n",
       " ['Rwanda', 6044],\n",
       " ['SaintLucia', 232],\n",
       " ['Samoa', 218],\n",
       " ['SaoTomeandPrincipe', 103],\n",
       " ['Saudi Arabia', 13069],\n",
       " ['Senegal', 7893],\n",
       " ['Serbia', 28107],\n",
       " ['Sierra Leone', 3389],\n",
       " ['Singapore', 12130],\n",
       " ['Slovakia', 16279],\n",
       " ['Slovenia', 6592],\n",
       " ['Solomon Is.', 308],\n",
       " ['Somalia', 7439],\n",
       " ['South Africa', 56802],\n",
       " ['S. Sudan', 4633],\n",
       " ['Spain', 113054],\n",
       " ['Sri Lanka', 16691],\n",
       " ['Sudan', 17055],\n",
       " ['Suriname', 658],\n",
       " ['Sweden', 24464],\n",
       " ['Switzerland', 19036],\n",
       " ['Syria', 12967],\n",
       " ['Tajikistan', 3843],\n",
       " ['Tanzania', 26945],\n",
       " ['Thailand', 124866],\n",
       " ['Netherlands', 49008],\n",
       " ['TheRepublicoftheGambia', 810],\n",
       " ['Timor-Leste', 539],\n",
       " ['Togo', 3468],\n",
       " ['Trinidad and Tobago', 2239],\n",
       " ['Tunisia', 11855],\n",
       " ['Turkey', 126335],\n",
       " ['Turkmenistan', 4335],\n",
       " ['Uganda', 22992],\n",
       " ['Ukraine', 84194],\n",
       " ['United Arab Emirates', 1896],\n",
       " ['United Kingdom', 179648],\n",
       " ['United States', 612390],\n",
       " ['Uruguay', 8577],\n",
       " ['Uzbekistan', 20855],\n",
       " ['Vanuatu', 149],\n",
       " ['Venezuela', 31177],\n",
       " ['Vietnam', 122690],\n",
       " ['Yemen', 12103],\n",
       " ['Zambia', 8672],\n",
       " ['Zimbabwe', 10676]]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 地图数据 - 2\n",
    "map_mnum = df_world[['Country','Mortality']].values.tolist()\n",
    "map_mnum"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "dc4cdddd",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    },
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Cancer</th>\n",
       "      <th>Incidence</th>\n",
       "      <th>Mortality</th>\n",
       "      <th>M. Incidence</th>\n",
       "      <th>M. Mortality</th>\n",
       "      <th>F. Incidence</th>\n",
       "      <th>F. Mortality</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>乳腺癌</td>\n",
       "      <td>2261419</td>\n",
       "      <td>684996</td>\n",
       "      <td>No Data</td>\n",
       "      <td>No Data</td>\n",
       "      <td>2261419</td>\n",
       "      <td>684996</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>肺癌</td>\n",
       "      <td>2206771</td>\n",
       "      <td>1796144</td>\n",
       "      <td>1435943</td>\n",
       "      <td>1188679</td>\n",
       "      <td>770828</td>\n",
       "      <td>607465</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>结直肠癌</td>\n",
       "      <td>1931590</td>\n",
       "      <td>935173</td>\n",
       "      <td>1065960</td>\n",
       "      <td>515637</td>\n",
       "      <td>865630</td>\n",
       "      <td>419536</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>前列腺癌</td>\n",
       "      <td>1414259</td>\n",
       "      <td>375304</td>\n",
       "      <td>1414259</td>\n",
       "      <td>375304</td>\n",
       "      <td>No Data</td>\n",
       "      <td>No Data</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>胃癌</td>\n",
       "      <td>1089103</td>\n",
       "      <td>768793</td>\n",
       "      <td>719523</td>\n",
       "      <td>502788</td>\n",
       "      <td>369580</td>\n",
       "      <td>266005</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>肝癌</td>\n",
       "      <td>905677</td>\n",
       "      <td>830180</td>\n",
       "      <td>632320</td>\n",
       "      <td>577522</td>\n",
       "      <td>273357</td>\n",
       "      <td>252658</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>宫颈癌</td>\n",
       "      <td>604127</td>\n",
       "      <td>341831</td>\n",
       "      <td>No Data</td>\n",
       "      <td>No Data</td>\n",
       "      <td>604127</td>\n",
       "      <td>341831</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>食道癌</td>\n",
       "      <td>604100</td>\n",
       "      <td>544076</td>\n",
       "      <td>418350</td>\n",
       "      <td>374313</td>\n",
       "      <td>185750</td>\n",
       "      <td>169763</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>甲状腺癌</td>\n",
       "      <td>586202</td>\n",
       "      <td>43646</td>\n",
       "      <td>137287</td>\n",
       "      <td>15906</td>\n",
       "      <td>448915</td>\n",
       "      <td>27740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>膀胱癌</td>\n",
       "      <td>573278</td>\n",
       "      <td>212536</td>\n",
       "      <td>440864</td>\n",
       "      <td>158785</td>\n",
       "      <td>132414</td>\n",
       "      <td>53751</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   Cancer  Incidence  Mortality M. Incidence M. Mortality F. Incidence  \\\n",
       "2     乳腺癌    2261419     684996      No Data      No Data      2261419   \n",
       "15     肺癌    2206771    1796144      1435943      1188679       770828   \n",
       "4    结直肠癌    1931590     935173      1065960       515637       865630   \n",
       "26   前列腺癌    1414259     375304      1414259       375304      No Data   \n",
       "28     胃癌    1089103     768793       719523       502788       369580   \n",
       "14     肝癌     905677     830180       632320       577522       273357   \n",
       "3     宫颈癌     604127     341831      No Data      No Data       604127   \n",
       "21    食道癌     604100     544076       418350       374313       185750   \n",
       "30   甲状腺癌     586202      43646       137287        15906       448915   \n",
       "0     膀胱癌     573278     212536       440864       158785       132414   \n",
       "\n",
       "   F. Mortality  \n",
       "2        684996  \n",
       "15       607465  \n",
       "4        419536  \n",
       "26      No Data  \n",
       "28       266005  \n",
       "14       252658  \n",
       "3        341831  \n",
       "21       169763  \n",
       "30        27740  \n",
       "0         53751  "
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 条形图数据 - 1\n",
    "df_cancer = pd.read_csv('./data/cancer_data.csv', encoding='gbk')\n",
    "df_c = df_cancer.sort_values(by='Incidence', ascending = False)[:10] # 取前10数据\n",
    "df_c"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "c04664e8",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [],
   "source": [
    "# 堆叠条形图数据\n",
    "sta_x = df_c['Cancer'].values.tolist()\n",
    "sta_inum = df_c['Incidence'].values.tolist()\n",
    "sta_mnum = df_c['Mortality'].values.tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "9845d37a",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [],
   "source": [
    "# 条形图数据 - 2\n",
    "bar_x = df_cancer['Cancer'].values.tolist()\n",
    "bar_fi = df_cancer['F. Incidence'].values.tolist()\n",
    "bar_fm = df_cancer['F. Mortality'].values.tolist()\n",
    "\n",
    "bar_mi = df_cancer['M. Incidence'].values.tolist()\n",
    "bar_mm = df_cancer['M. Mortality'].values.tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "d4b795ee",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    },
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Country</th>\n",
       "      <th>1993</th>\n",
       "      <th>1994</th>\n",
       "      <th>1995</th>\n",
       "      <th>1996</th>\n",
       "      <th>1997</th>\n",
       "      <th>1998</th>\n",
       "      <th>1999</th>\n",
       "      <th>2000</th>\n",
       "      <th>2001</th>\n",
       "      <th>...</th>\n",
       "      <th>2004</th>\n",
       "      <th>2005</th>\n",
       "      <th>2006</th>\n",
       "      <th>2007</th>\n",
       "      <th>2008</th>\n",
       "      <th>2009</th>\n",
       "      <th>2010</th>\n",
       "      <th>2011</th>\n",
       "      <th>2012</th>\n",
       "      <th>2013</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Bulgaria</td>\n",
       "      <td>42.8</td>\n",
       "      <td>42.6</td>\n",
       "      <td>42</td>\n",
       "      <td>42.8</td>\n",
       "      <td>42.1</td>\n",
       "      <td>52.3</td>\n",
       "      <td>48</td>\n",
       "      <td>50.2</td>\n",
       "      <td>48.2</td>\n",
       "      <td>...</td>\n",
       "      <td>50.3</td>\n",
       "      <td>51.2</td>\n",
       "      <td>49.7</td>\n",
       "      <td>51.8</td>\n",
       "      <td>53.9</td>\n",
       "      <td>52.9</td>\n",
       "      <td>50.7</td>\n",
       "      <td>48.4</td>\n",
       "      <td>50.9</td>\n",
       "      <td>51.1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Belarus</td>\n",
       "      <td>68.5</td>\n",
       "      <td>71.2</td>\n",
       "      <td>69.4</td>\n",
       "      <td>72.7</td>\n",
       "      <td>69.1</td>\n",
       "      <td>70</td>\n",
       "      <td>66.6</td>\n",
       "      <td>65.3</td>\n",
       "      <td>64.8</td>\n",
       "      <td>...</td>\n",
       "      <td>64.3</td>\n",
       "      <td>61.4</td>\n",
       "      <td>62.2</td>\n",
       "      <td>61.4</td>\n",
       "      <td>62.7</td>\n",
       "      <td>61.1</td>\n",
       "      <td>62.6</td>\n",
       "      <td>59.8</td>\n",
       "      <td>56.8</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Canada*</td>\n",
       "      <td>56.7</td>\n",
       "      <td>53.7</td>\n",
       "      <td>52.7</td>\n",
       "      <td>52.1</td>\n",
       "      <td>48.8</td>\n",
       "      <td>50.3</td>\n",
       "      <td>50.2</td>\n",
       "      <td>47.5</td>\n",
       "      <td>46.9</td>\n",
       "      <td>...</td>\n",
       "      <td>43.2</td>\n",
       "      <td>42.9</td>\n",
       "      <td>42.0</td>\n",
       "      <td>41.4</td>\n",
       "      <td>39.7</td>\n",
       "      <td>39.8</td>\n",
       "      <td>38.4</td>\n",
       "      <td>36.8</td>\n",
       "      <td>36.7</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Chile*</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>9.3</td>\n",
       "      <td>8.7</td>\n",
       "      <td>18.4</td>\n",
       "      <td>11.7</td>\n",
       "      <td>...</td>\n",
       "      <td>12.2</td>\n",
       "      <td>9.9</td>\n",
       "      <td>12.1</td>\n",
       "      <td>7.9</td>\n",
       "      <td>12.0</td>\n",
       "      <td>10.5</td>\n",
       "      <td>8.8</td>\n",
       "      <td>12</td>\n",
       "      <td>8.8</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>China*</td>\n",
       "      <td>60.1</td>\n",
       "      <td>59.3</td>\n",
       "      <td>57.4</td>\n",
       "      <td>55.3</td>\n",
       "      <td>57</td>\n",
       "      <td>55.3</td>\n",
       "      <td>55.2</td>\n",
       "      <td>55.9</td>\n",
       "      <td>54.3</td>\n",
       "      <td>...</td>\n",
       "      <td>48.7</td>\n",
       "      <td>46.2</td>\n",
       "      <td>45.9</td>\n",
       "      <td>43.9</td>\n",
       "      <td>43.2</td>\n",
       "      <td>41.6</td>\n",
       "      <td>41.4</td>\n",
       "      <td>39.6</td>\n",
       "      <td>41.4</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Colombia*</td>\n",
       "      <td>21.6</td>\n",
       "      <td>22.4</td>\n",
       "      <td>23.1</td>\n",
       "      <td>25.1</td>\n",
       "      <td>18</td>\n",
       "      <td>19.5</td>\n",
       "      <td>27.3</td>\n",
       "      <td>19.1</td>\n",
       "      <td>21.7</td>\n",
       "      <td>...</td>\n",
       "      <td>18.1</td>\n",
       "      <td>22.3</td>\n",
       "      <td>19.1</td>\n",
       "      <td>17.3</td>\n",
       "      <td>16.1</td>\n",
       "      <td>14.4</td>\n",
       "      <td>12.7</td>\n",
       "      <td>12.9</td>\n",
       "      <td>13.5</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Costa Rica</td>\n",
       "      <td>9.5</td>\n",
       "      <td>11.3</td>\n",
       "      <td>11.7</td>\n",
       "      <td>13.1</td>\n",
       "      <td>12.1</td>\n",
       "      <td>11.2</td>\n",
       "      <td>12.5</td>\n",
       "      <td>11.2</td>\n",
       "      <td>11.6</td>\n",
       "      <td>...</td>\n",
       "      <td>10.3</td>\n",
       "      <td>10.4</td>\n",
       "      <td>11.3</td>\n",
       "      <td>9.4</td>\n",
       "      <td>8.3</td>\n",
       "      <td>9.9</td>\n",
       "      <td>9.6</td>\n",
       "      <td>7.4</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Croatia</td>\n",
       "      <td>75.5</td>\n",
       "      <td>70.4</td>\n",
       "      <td>72</td>\n",
       "      <td>77.7</td>\n",
       "      <td>76.2</td>\n",
       "      <td>69.3</td>\n",
       "      <td>78.4</td>\n",
       "      <td>92.9</td>\n",
       "      <td>74.7</td>\n",
       "      <td>...</td>\n",
       "      <td>64.0</td>\n",
       "      <td>68.2</td>\n",
       "      <td>64.1</td>\n",
       "      <td>63.7</td>\n",
       "      <td>58.3</td>\n",
       "      <td>63.0</td>\n",
       "      <td>56.5</td>\n",
       "      <td>60.6</td>\n",
       "      <td>56.4</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Czechia</td>\n",
       "      <td>75.7</td>\n",
       "      <td>74.4</td>\n",
       "      <td>71.3</td>\n",
       "      <td>76</td>\n",
       "      <td>69.3</td>\n",
       "      <td>68.6</td>\n",
       "      <td>66.2</td>\n",
       "      <td>65.4</td>\n",
       "      <td>61.9</td>\n",
       "      <td>...</td>\n",
       "      <td>61.5</td>\n",
       "      <td>58.9</td>\n",
       "      <td>56.4</td>\n",
       "      <td>56.7</td>\n",
       "      <td>55.0</td>\n",
       "      <td>52.1</td>\n",
       "      <td>52.6</td>\n",
       "      <td>48.9</td>\n",
       "      <td>47.5</td>\n",
       "      <td>44.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Denmark</td>\n",
       "      <td>51.1</td>\n",
       "      <td>50.9</td>\n",
       "      <td>49.5</td>\n",
       "      <td>47.9</td>\n",
       "      <td>48.9</td>\n",
       "      <td>46.4</td>\n",
       "      <td>46.6</td>\n",
       "      <td>49.2</td>\n",
       "      <td>47.2</td>\n",
       "      <td>...</td>\n",
       "      <td>45.3</td>\n",
       "      <td>44.7</td>\n",
       "      <td>44.3</td>\n",
       "      <td>45.3</td>\n",
       "      <td>43.6</td>\n",
       "      <td>43.0</td>\n",
       "      <td>42.6</td>\n",
       "      <td>41.3</td>\n",
       "      <td>42.1</td>\n",
       "      <td>39.1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Ecuador*</td>\n",
       "      <td>7.7</td>\n",
       "      <td>8.8</td>\n",
       "      <td>7.2</td>\n",
       "      <td>8.9</td>\n",
       "      <td>11.7</td>\n",
       "      <td>6.4</td>\n",
       "      <td>5.6</td>\n",
       "      <td>9.6</td>\n",
       "      <td>7.7</td>\n",
       "      <td>...</td>\n",
       "      <td>7.5</td>\n",
       "      <td>10.5</td>\n",
       "      <td>7.0</td>\n",
       "      <td>8.9</td>\n",
       "      <td>7.9</td>\n",
       "      <td>8.3</td>\n",
       "      <td>8.6</td>\n",
       "      <td>8.9</td>\n",
       "      <td>6.3</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Estonia</td>\n",
       "      <td>74.9</td>\n",
       "      <td>71.7</td>\n",
       "      <td>78.3</td>\n",
       "      <td>73.8</td>\n",
       "      <td>74.3</td>\n",
       "      <td>69</td>\n",
       "      <td>69.8</td>\n",
       "      <td>62.7</td>\n",
       "      <td>67.5</td>\n",
       "      <td>...</td>\n",
       "      <td>62.8</td>\n",
       "      <td>59.5</td>\n",
       "      <td>61.9</td>\n",
       "      <td>63.9</td>\n",
       "      <td>57.8</td>\n",
       "      <td>55.5</td>\n",
       "      <td>60.4</td>\n",
       "      <td>54.8</td>\n",
       "      <td>56.7</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>France*</td>\n",
       "      <td>54.6</td>\n",
       "      <td>52.9</td>\n",
       "      <td>53.6</td>\n",
       "      <td>55.4</td>\n",
       "      <td>55.4</td>\n",
       "      <td>55.2</td>\n",
       "      <td>52.1</td>\n",
       "      <td>55.5</td>\n",
       "      <td>54.3</td>\n",
       "      <td>...</td>\n",
       "      <td>55.2</td>\n",
       "      <td>54.5</td>\n",
       "      <td>53.6</td>\n",
       "      <td>52.8</td>\n",
       "      <td>53.2</td>\n",
       "      <td>52.8</td>\n",
       "      <td>53.1</td>\n",
       "      <td>53.1</td>\n",
       "      <td>52.5</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Germany*</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>59.3</td>\n",
       "      <td>58.6</td>\n",
       "      <td>59.3</td>\n",
       "      <td>52.7</td>\n",
       "      <td>...</td>\n",
       "      <td>52.3</td>\n",
       "      <td>54.8</td>\n",
       "      <td>54.9</td>\n",
       "      <td>51.5</td>\n",
       "      <td>51.1</td>\n",
       "      <td>46.7</td>\n",
       "      <td>48.8</td>\n",
       "      <td>48.9</td>\n",
       "      <td>45.6</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Iceland</td>\n",
       "      <td>33.4</td>\n",
       "      <td>31.2</td>\n",
       "      <td>39.2</td>\n",
       "      <td>33.9</td>\n",
       "      <td>45.6</td>\n",
       "      <td>31.5</td>\n",
       "      <td>34</td>\n",
       "      <td>38</td>\n",
       "      <td>31.5</td>\n",
       "      <td>...</td>\n",
       "      <td>32.6</td>\n",
       "      <td>34.0</td>\n",
       "      <td>33.6</td>\n",
       "      <td>39.7</td>\n",
       "      <td>34.8</td>\n",
       "      <td>30.5</td>\n",
       "      <td>33.1</td>\n",
       "      <td>33.2</td>\n",
       "      <td>30.5</td>\n",
       "      <td>35.3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>India*</td>\n",
       "      <td>12.3</td>\n",
       "      <td>10.5</td>\n",
       "      <td>9.2</td>\n",
       "      <td>11.1</td>\n",
       "      <td>11.3</td>\n",
       "      <td>10.8</td>\n",
       "      <td>10.7</td>\n",
       "      <td>10.1</td>\n",
       "      <td>11.2</td>\n",
       "      <td>...</td>\n",
       "      <td>12.0</td>\n",
       "      <td>13.4</td>\n",
       "      <td>12.0</td>\n",
       "      <td>13.8</td>\n",
       "      <td>13.6</td>\n",
       "      <td>12.8</td>\n",
       "      <td>12.4</td>\n",
       "      <td>12.3</td>\n",
       "      <td>11.9</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Australia</td>\n",
       "      <td>44.5</td>\n",
       "      <td>45.8</td>\n",
       "      <td>43.4</td>\n",
       "      <td>43.2</td>\n",
       "      <td>42.3</td>\n",
       "      <td>41.4</td>\n",
       "      <td>39.7</td>\n",
       "      <td>38.5</td>\n",
       "      <td>37.6</td>\n",
       "      <td>...</td>\n",
       "      <td>37.5</td>\n",
       "      <td>36.1</td>\n",
       "      <td>36.4</td>\n",
       "      <td>35.2</td>\n",
       "      <td>34.4</td>\n",
       "      <td>33.2</td>\n",
       "      <td>33.1</td>\n",
       "      <td>32.5</td>\n",
       "      <td>32.4</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Ireland</td>\n",
       "      <td>None</td>\n",
       "      <td>47.8</td>\n",
       "      <td>42.6</td>\n",
       "      <td>42.6</td>\n",
       "      <td>41.4</td>\n",
       "      <td>43.6</td>\n",
       "      <td>42</td>\n",
       "      <td>40.4</td>\n",
       "      <td>40.4</td>\n",
       "      <td>...</td>\n",
       "      <td>39.8</td>\n",
       "      <td>38.6</td>\n",
       "      <td>38.0</td>\n",
       "      <td>39.2</td>\n",
       "      <td>38.4</td>\n",
       "      <td>39.1</td>\n",
       "      <td>40.1</td>\n",
       "      <td>39.1</td>\n",
       "      <td>38</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Israel</td>\n",
       "      <td>30.3</td>\n",
       "      <td>30.7</td>\n",
       "      <td>32.5</td>\n",
       "      <td>31.6</td>\n",
       "      <td>34.9</td>\n",
       "      <td>33.6</td>\n",
       "      <td>31.5</td>\n",
       "      <td>32.6</td>\n",
       "      <td>33.9</td>\n",
       "      <td>...</td>\n",
       "      <td>32.2</td>\n",
       "      <td>34.4</td>\n",
       "      <td>32.0</td>\n",
       "      <td>33.5</td>\n",
       "      <td>32.9</td>\n",
       "      <td>32.7</td>\n",
       "      <td>32.7</td>\n",
       "      <td>29.7</td>\n",
       "      <td>32</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Italy*</td>\n",
       "      <td>59.2</td>\n",
       "      <td>60.5</td>\n",
       "      <td>59.7</td>\n",
       "      <td>62.3</td>\n",
       "      <td>57.7</td>\n",
       "      <td>57.5</td>\n",
       "      <td>58.2</td>\n",
       "      <td>53.9</td>\n",
       "      <td>55.8</td>\n",
       "      <td>...</td>\n",
       "      <td>48.7</td>\n",
       "      <td>46.3</td>\n",
       "      <td>47.1</td>\n",
       "      <td>45.0</td>\n",
       "      <td>46.3</td>\n",
       "      <td>44.3</td>\n",
       "      <td>44.1</td>\n",
       "      <td>42.5</td>\n",
       "      <td>39</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Japan*</td>\n",
       "      <td>44.7</td>\n",
       "      <td>45.4</td>\n",
       "      <td>46.1</td>\n",
       "      <td>46.8</td>\n",
       "      <td>46.1</td>\n",
       "      <td>45.9</td>\n",
       "      <td>46.2</td>\n",
       "      <td>45.7</td>\n",
       "      <td>46.1</td>\n",
       "      <td>...</td>\n",
       "      <td>45.0</td>\n",
       "      <td>44.1</td>\n",
       "      <td>45.5</td>\n",
       "      <td>46.3</td>\n",
       "      <td>46.4</td>\n",
       "      <td>45.7</td>\n",
       "      <td>47.6</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Republic of Korea</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>51.2</td>\n",
       "      <td>48.1</td>\n",
       "      <td>49.5</td>\n",
       "      <td>...</td>\n",
       "      <td>46.5</td>\n",
       "      <td>46.7</td>\n",
       "      <td>46.2</td>\n",
       "      <td>44.4</td>\n",
       "      <td>44.1</td>\n",
       "      <td>43.7</td>\n",
       "      <td>44.2</td>\n",
       "      <td>43.8</td>\n",
       "      <td>41.9</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Kuwait: Kuwaiti</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>20.8</td>\n",
       "      <td>15.9</td>\n",
       "      <td>19.1</td>\n",
       "      <td>14.2</td>\n",
       "      <td>...</td>\n",
       "      <td>13.2</td>\n",
       "      <td>10.9</td>\n",
       "      <td>16.9</td>\n",
       "      <td>11.0</td>\n",
       "      <td>12.4</td>\n",
       "      <td>14.4</td>\n",
       "      <td>18.3</td>\n",
       "      <td>11.2</td>\n",
       "      <td>12.2</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Latvia</td>\n",
       "      <td>61.2</td>\n",
       "      <td>66.1</td>\n",
       "      <td>62.3</td>\n",
       "      <td>66</td>\n",
       "      <td>61.9</td>\n",
       "      <td>64.6</td>\n",
       "      <td>64.2</td>\n",
       "      <td>59.4</td>\n",
       "      <td>60.6</td>\n",
       "      <td>...</td>\n",
       "      <td>65.4</td>\n",
       "      <td>60.7</td>\n",
       "      <td>64.2</td>\n",
       "      <td>59.8</td>\n",
       "      <td>58.7</td>\n",
       "      <td>54.2</td>\n",
       "      <td>52.8</td>\n",
       "      <td>57</td>\n",
       "      <td>54.7</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Lithuania</td>\n",
       "      <td>73</td>\n",
       "      <td>71.8</td>\n",
       "      <td>68</td>\n",
       "      <td>67.8</td>\n",
       "      <td>62.4</td>\n",
       "      <td>66.1</td>\n",
       "      <td>66.5</td>\n",
       "      <td>62.5</td>\n",
       "      <td>61.4</td>\n",
       "      <td>...</td>\n",
       "      <td>57.9</td>\n",
       "      <td>57.3</td>\n",
       "      <td>59.2</td>\n",
       "      <td>57.6</td>\n",
       "      <td>57.7</td>\n",
       "      <td>51.8</td>\n",
       "      <td>55.8</td>\n",
       "      <td>53.1</td>\n",
       "      <td>49.3</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Malta</td>\n",
       "      <td>52.8</td>\n",
       "      <td>45.1</td>\n",
       "      <td>50.8</td>\n",
       "      <td>45.4</td>\n",
       "      <td>36.8</td>\n",
       "      <td>37.9</td>\n",
       "      <td>41.7</td>\n",
       "      <td>46.2</td>\n",
       "      <td>32.6</td>\n",
       "      <td>...</td>\n",
       "      <td>29.4</td>\n",
       "      <td>33.0</td>\n",
       "      <td>35.2</td>\n",
       "      <td>36.8</td>\n",
       "      <td>32.2</td>\n",
       "      <td>35.8</td>\n",
       "      <td>41.4</td>\n",
       "      <td>36.6</td>\n",
       "      <td>30.6</td>\n",
       "      <td>30.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>The Netherlands</td>\n",
       "      <td>68.9</td>\n",
       "      <td>67.3</td>\n",
       "      <td>65.6</td>\n",
       "      <td>63.7</td>\n",
       "      <td>62</td>\n",
       "      <td>59.2</td>\n",
       "      <td>56.8</td>\n",
       "      <td>54.6</td>\n",
       "      <td>52.5</td>\n",
       "      <td>...</td>\n",
       "      <td>51.2</td>\n",
       "      <td>48.9</td>\n",
       "      <td>49.5</td>\n",
       "      <td>48.9</td>\n",
       "      <td>47.8</td>\n",
       "      <td>47.9</td>\n",
       "      <td>46.9</td>\n",
       "      <td>46.3</td>\n",
       "      <td>42.9</td>\n",
       "      <td>41.2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>New Zealand</td>\n",
       "      <td>45.2</td>\n",
       "      <td>46.8</td>\n",
       "      <td>42.1</td>\n",
       "      <td>40.4</td>\n",
       "      <td>36.8</td>\n",
       "      <td>38.3</td>\n",
       "      <td>37.3</td>\n",
       "      <td>36.5</td>\n",
       "      <td>32.1</td>\n",
       "      <td>...</td>\n",
       "      <td>37.0</td>\n",
       "      <td>31.7</td>\n",
       "      <td>30.6</td>\n",
       "      <td>31.5</td>\n",
       "      <td>29.6</td>\n",
       "      <td>31.7</td>\n",
       "      <td>29.3</td>\n",
       "      <td>28.7</td>\n",
       "      <td>28.4</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Norway</td>\n",
       "      <td>37.1</td>\n",
       "      <td>36.7</td>\n",
       "      <td>36</td>\n",
       "      <td>37.8</td>\n",
       "      <td>37.1</td>\n",
       "      <td>35.5</td>\n",
       "      <td>36.3</td>\n",
       "      <td>35.3</td>\n",
       "      <td>36.3</td>\n",
       "      <td>...</td>\n",
       "      <td>36.3</td>\n",
       "      <td>35.4</td>\n",
       "      <td>37.1</td>\n",
       "      <td>36.4</td>\n",
       "      <td>35.5</td>\n",
       "      <td>35.8</td>\n",
       "      <td>34.7</td>\n",
       "      <td>35.5</td>\n",
       "      <td>35.1</td>\n",
       "      <td>32.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Poland*</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>78.5</td>\n",
       "      <td>80.2</td>\n",
       "      <td>79.6</td>\n",
       "      <td>74.3</td>\n",
       "      <td>...</td>\n",
       "      <td>66.7</td>\n",
       "      <td>70.8</td>\n",
       "      <td>67.2</td>\n",
       "      <td>59.6</td>\n",
       "      <td>62.9</td>\n",
       "      <td>61.6</td>\n",
       "      <td>56.5</td>\n",
       "      <td>59</td>\n",
       "      <td>51.1</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>Slovakia</td>\n",
       "      <td>72.2</td>\n",
       "      <td>71.5</td>\n",
       "      <td>72.7</td>\n",
       "      <td>72</td>\n",
       "      <td>69</td>\n",
       "      <td>64.6</td>\n",
       "      <td>61.7</td>\n",
       "      <td>64</td>\n",
       "      <td>58.9</td>\n",
       "      <td>...</td>\n",
       "      <td>57.1</td>\n",
       "      <td>57.1</td>\n",
       "      <td>55.7</td>\n",
       "      <td>53.8</td>\n",
       "      <td>54.0</td>\n",
       "      <td>54.4</td>\n",
       "      <td>53.4</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>Slovenia</td>\n",
       "      <td>69.7</td>\n",
       "      <td>61.7</td>\n",
       "      <td>68.8</td>\n",
       "      <td>63.2</td>\n",
       "      <td>64.5</td>\n",
       "      <td>61.2</td>\n",
       "      <td>60.3</td>\n",
       "      <td>60.3</td>\n",
       "      <td>53.6</td>\n",
       "      <td>...</td>\n",
       "      <td>61.2</td>\n",
       "      <td>54.8</td>\n",
       "      <td>58.4</td>\n",
       "      <td>54.4</td>\n",
       "      <td>53.0</td>\n",
       "      <td>49.2</td>\n",
       "      <td>48.9</td>\n",
       "      <td>44.2</td>\n",
       "      <td>45.6</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>Spain*</td>\n",
       "      <td>51.5</td>\n",
       "      <td>50.7</td>\n",
       "      <td>51.4</td>\n",
       "      <td>52</td>\n",
       "      <td>51.2</td>\n",
       "      <td>50.1</td>\n",
       "      <td>51.5</td>\n",
       "      <td>51.1</td>\n",
       "      <td>51.3</td>\n",
       "      <td>...</td>\n",
       "      <td>51.6</td>\n",
       "      <td>50.6</td>\n",
       "      <td>50.4</td>\n",
       "      <td>49.6</td>\n",
       "      <td>50.3</td>\n",
       "      <td>47.3</td>\n",
       "      <td>48.2</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>Sweden</td>\n",
       "      <td>22.4</td>\n",
       "      <td>23.5</td>\n",
       "      <td>21.4</td>\n",
       "      <td>20.9</td>\n",
       "      <td>21.3</td>\n",
       "      <td>21.1</td>\n",
       "      <td>20.7</td>\n",
       "      <td>20.5</td>\n",
       "      <td>21</td>\n",
       "      <td>...</td>\n",
       "      <td>21.8</td>\n",
       "      <td>21.0</td>\n",
       "      <td>20.0</td>\n",
       "      <td>19.5</td>\n",
       "      <td>19.6</td>\n",
       "      <td>18.9</td>\n",
       "      <td>20.0</td>\n",
       "      <td>19.7</td>\n",
       "      <td>19.1</td>\n",
       "      <td>18.3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>Switzerland*</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>47.8</td>\n",
       "      <td>46.9</td>\n",
       "      <td>44.9</td>\n",
       "      <td>46.4</td>\n",
       "      <td>...</td>\n",
       "      <td>42.2</td>\n",
       "      <td>42.2</td>\n",
       "      <td>42.7</td>\n",
       "      <td>40.1</td>\n",
       "      <td>38.9</td>\n",
       "      <td>38.8</td>\n",
       "      <td>37.3</td>\n",
       "      <td>36.1</td>\n",
       "      <td>34.9</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>Brazil*</td>\n",
       "      <td>17.9</td>\n",
       "      <td>20.3</td>\n",
       "      <td>26.6</td>\n",
       "      <td>18</td>\n",
       "      <td>22.4</td>\n",
       "      <td>22.1</td>\n",
       "      <td>23.8</td>\n",
       "      <td>22.6</td>\n",
       "      <td>22.6</td>\n",
       "      <td>...</td>\n",
       "      <td>24.4</td>\n",
       "      <td>28.7</td>\n",
       "      <td>27.8</td>\n",
       "      <td>27.9</td>\n",
       "      <td>30.0</td>\n",
       "      <td>18.5</td>\n",
       "      <td>24.2</td>\n",
       "      <td>19.1</td>\n",
       "      <td>16.1</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>Thailand*</td>\n",
       "      <td>28.5</td>\n",
       "      <td>30.2</td>\n",
       "      <td>28.4</td>\n",
       "      <td>31.8</td>\n",
       "      <td>29.5</td>\n",
       "      <td>29.3</td>\n",
       "      <td>26.5</td>\n",
       "      <td>27.1</td>\n",
       "      <td>30.6</td>\n",
       "      <td>...</td>\n",
       "      <td>30.5</td>\n",
       "      <td>29.8</td>\n",
       "      <td>28.5</td>\n",
       "      <td>26.8</td>\n",
       "      <td>26.6</td>\n",
       "      <td>26.6</td>\n",
       "      <td>26.9</td>\n",
       "      <td>26.9</td>\n",
       "      <td>28.2</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>Turkey*</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>61.2</td>\n",
       "      <td>62</td>\n",
       "      <td>76.3</td>\n",
       "      <td>73.1</td>\n",
       "      <td>...</td>\n",
       "      <td>79.8</td>\n",
       "      <td>75.6</td>\n",
       "      <td>80.1</td>\n",
       "      <td>81.1</td>\n",
       "      <td>79.3</td>\n",
       "      <td>75.7</td>\n",
       "      <td>73.0</td>\n",
       "      <td>68.3</td>\n",
       "      <td>66.8</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>Uganda*</td>\n",
       "      <td>6.6</td>\n",
       "      <td>3.6</td>\n",
       "      <td>0.34</td>\n",
       "      <td>3.6</td>\n",
       "      <td>5.1</td>\n",
       "      <td>4</td>\n",
       "      <td>5.7</td>\n",
       "      <td>7.1</td>\n",
       "      <td>3.2</td>\n",
       "      <td>...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>4.4</td>\n",
       "      <td>3.3</td>\n",
       "      <td>7.0</td>\n",
       "      <td>2.9</td>\n",
       "      <td>1.2</td>\n",
       "      <td>4.5</td>\n",
       "      <td>2.3</td>\n",
       "      <td>3.8</td>\n",
       "      <td>3.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>Ukraine</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>...</td>\n",
       "      <td>52.0</td>\n",
       "      <td>51.6</td>\n",
       "      <td>49.7</td>\n",
       "      <td>49.1</td>\n",
       "      <td>46.9</td>\n",
       "      <td>46.7</td>\n",
       "      <td>46.6</td>\n",
       "      <td>46.3</td>\n",
       "      <td>46.3</td>\n",
       "      <td>44.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>40</th>\n",
       "      <td>UK, England and Wales *</td>\n",
       "      <td>54.9</td>\n",
       "      <td>53.9</td>\n",
       "      <td>50.6</td>\n",
       "      <td>48.1</td>\n",
       "      <td>48</td>\n",
       "      <td>45.8</td>\n",
       "      <td>44.5</td>\n",
       "      <td>44.1</td>\n",
       "      <td>42.6</td>\n",
       "      <td>...</td>\n",
       "      <td>39.7</td>\n",
       "      <td>38.7</td>\n",
       "      <td>39.5</td>\n",
       "      <td>38.2</td>\n",
       "      <td>38.0</td>\n",
       "      <td>37.2</td>\n",
       "      <td>37.1</td>\n",
       "      <td>37</td>\n",
       "      <td>37.1</td>\n",
       "      <td>36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>UK, Scotland</td>\n",
       "      <td>76.9</td>\n",
       "      <td>73.8</td>\n",
       "      <td>70.6</td>\n",
       "      <td>70.7</td>\n",
       "      <td>66.5</td>\n",
       "      <td>65.1</td>\n",
       "      <td>61.2</td>\n",
       "      <td>59.5</td>\n",
       "      <td>58.6</td>\n",
       "      <td>...</td>\n",
       "      <td>56.0</td>\n",
       "      <td>54.2</td>\n",
       "      <td>53.8</td>\n",
       "      <td>53.2</td>\n",
       "      <td>51.3</td>\n",
       "      <td>52.8</td>\n",
       "      <td>49.5</td>\n",
       "      <td>48.5</td>\n",
       "      <td>48.2</td>\n",
       "      <td>47.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>UK, Northern Ireland</td>\n",
       "      <td>52</td>\n",
       "      <td>59</td>\n",
       "      <td>48.6</td>\n",
       "      <td>48.4</td>\n",
       "      <td>48.7</td>\n",
       "      <td>47.7</td>\n",
       "      <td>42.4</td>\n",
       "      <td>43.8</td>\n",
       "      <td>46.4</td>\n",
       "      <td>...</td>\n",
       "      <td>44.2</td>\n",
       "      <td>42.1</td>\n",
       "      <td>42.2</td>\n",
       "      <td>43.0</td>\n",
       "      <td>44.8</td>\n",
       "      <td>42.2</td>\n",
       "      <td>42.1</td>\n",
       "      <td>42.5</td>\n",
       "      <td>40.6</td>\n",
       "      <td>41.7</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>USA*</td>\n",
       "      <td>57.7</td>\n",
       "      <td>55.2</td>\n",
       "      <td>55.1</td>\n",
       "      <td>53.2</td>\n",
       "      <td>52.4</td>\n",
       "      <td>52.2</td>\n",
       "      <td>50.1</td>\n",
       "      <td>48.7</td>\n",
       "      <td>48.4</td>\n",
       "      <td>...</td>\n",
       "      <td>43.8</td>\n",
       "      <td>43.0</td>\n",
       "      <td>42.1</td>\n",
       "      <td>41.0</td>\n",
       "      <td>39.8</td>\n",
       "      <td>38.9</td>\n",
       "      <td>36.9</td>\n",
       "      <td>35.5</td>\n",
       "      <td>34.3</td>\n",
       "      <td>33.1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>44 rows × 22 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                    Country  1993  1994  1995  1996  1997  1998  1999  2000  \\\n",
       "0                  Bulgaria  42.8  42.6    42  42.8  42.1  52.3    48  50.2   \n",
       "1                   Belarus  68.5  71.2  69.4  72.7  69.1    70  66.6  65.3   \n",
       "2                   Canada*  56.7  53.7  52.7  52.1  48.8  50.3  50.2  47.5   \n",
       "3                    Chile*  None  None  None  None  None   9.3   8.7  18.4   \n",
       "4                    China*  60.1  59.3  57.4  55.3    57  55.3  55.2  55.9   \n",
       "5                 Colombia*  21.6  22.4  23.1  25.1    18  19.5  27.3  19.1   \n",
       "6                Costa Rica   9.5  11.3  11.7  13.1  12.1  11.2  12.5  11.2   \n",
       "7                   Croatia  75.5  70.4    72  77.7  76.2  69.3  78.4  92.9   \n",
       "8                   Czechia  75.7  74.4  71.3    76  69.3  68.6  66.2  65.4   \n",
       "9                   Denmark  51.1  50.9  49.5  47.9  48.9  46.4  46.6  49.2   \n",
       "10                 Ecuador*   7.7   8.8   7.2   8.9  11.7   6.4   5.6   9.6   \n",
       "11                  Estonia  74.9  71.7  78.3  73.8  74.3    69  69.8  62.7   \n",
       "12                  France*  54.6  52.9  53.6  55.4  55.4  55.2  52.1  55.5   \n",
       "13                 Germany*  None  None  None  None  None  59.3  58.6  59.3   \n",
       "14                  Iceland  33.4  31.2  39.2  33.9  45.6  31.5    34    38   \n",
       "15                   India*  12.3  10.5   9.2  11.1  11.3  10.8  10.7  10.1   \n",
       "16                Australia  44.5  45.8  43.4  43.2  42.3  41.4  39.7  38.5   \n",
       "17                  Ireland  None  47.8  42.6  42.6  41.4  43.6    42  40.4   \n",
       "18                   Israel  30.3  30.7  32.5  31.6  34.9  33.6  31.5  32.6   \n",
       "19                   Italy*  59.2  60.5  59.7  62.3  57.7  57.5  58.2  53.9   \n",
       "20                   Japan*  44.7  45.4  46.1  46.8  46.1  45.9  46.2  45.7   \n",
       "21        Republic of Korea  None  None  None  None  None  None  51.2  48.1   \n",
       "22          Kuwait: Kuwaiti  None  None  None  None  None  20.8  15.9  19.1   \n",
       "23                   Latvia  61.2  66.1  62.3    66  61.9  64.6  64.2  59.4   \n",
       "24                Lithuania    73  71.8    68  67.8  62.4  66.1  66.5  62.5   \n",
       "25                    Malta  52.8  45.1  50.8  45.4  36.8  37.9  41.7  46.2   \n",
       "26          The Netherlands  68.9  67.3  65.6  63.7    62  59.2  56.8  54.6   \n",
       "27              New Zealand  45.2  46.8  42.1  40.4  36.8  38.3  37.3  36.5   \n",
       "28                   Norway  37.1  36.7    36  37.8  37.1  35.5  36.3  35.3   \n",
       "29                  Poland*  None  None  None  None  None  78.5  80.2  79.6   \n",
       "30                 Slovakia  72.2  71.5  72.7    72    69  64.6  61.7    64   \n",
       "31                 Slovenia  69.7  61.7  68.8  63.2  64.5  61.2  60.3  60.3   \n",
       "32                   Spain*  51.5  50.7  51.4    52  51.2  50.1  51.5  51.1   \n",
       "33                   Sweden  22.4  23.5  21.4  20.9  21.3  21.1  20.7  20.5   \n",
       "34             Switzerland*  None  None  None  None  None  47.8  46.9  44.9   \n",
       "35                  Brazil*  17.9  20.3  26.6    18  22.4  22.1  23.8  22.6   \n",
       "36                Thailand*  28.5  30.2  28.4  31.8  29.5  29.3  26.5  27.1   \n",
       "37                  Turkey*  None  None  None  None  None  61.2    62  76.3   \n",
       "38                  Uganda*   6.6   3.6  0.34   3.6   5.1     4   5.7   7.1   \n",
       "39                  Ukraine  None  None  None  None  None  None  None  None   \n",
       "40  UK, England and Wales *  54.9  53.9  50.6  48.1    48  45.8  44.5  44.1   \n",
       "41             UK, Scotland  76.9  73.8  70.6  70.7  66.5  65.1  61.2  59.5   \n",
       "42    UK, Northern Ireland     52    59  48.6  48.4  48.7  47.7  42.4  43.8   \n",
       "43                     USA*  57.7  55.2  55.1  53.2  52.4  52.2  50.1  48.7   \n",
       "\n",
       "    2001  ...  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  \n",
       "0   48.2  ...  50.3  51.2  49.7  51.8  53.9  52.9  50.7  48.4  50.9  51.1  \n",
       "1   64.8  ...  64.3  61.4  62.2  61.4  62.7  61.1  62.6  59.8  56.8  None  \n",
       "2   46.9  ...  43.2  42.9  42.0  41.4  39.7  39.8  38.4  36.8  36.7  None  \n",
       "3   11.7  ...  12.2   9.9  12.1   7.9  12.0  10.5   8.8    12   8.8  None  \n",
       "4   54.3  ...  48.7  46.2  45.9  43.9  43.2  41.6  41.4  39.6  41.4  None  \n",
       "5   21.7  ...  18.1  22.3  19.1  17.3  16.1  14.4  12.7  12.9  13.5  None  \n",
       "6   11.6  ...  10.3  10.4  11.3   9.4   8.3   9.9   9.6   7.4  None  None  \n",
       "7   74.7  ...  64.0  68.2  64.1  63.7  58.3  63.0  56.5  60.6  56.4  None  \n",
       "8   61.9  ...  61.5  58.9  56.4  56.7  55.0  52.1  52.6  48.9  47.5  44.9  \n",
       "9   47.2  ...  45.3  44.7  44.3  45.3  43.6  43.0  42.6  41.3  42.1  39.1  \n",
       "10   7.7  ...   7.5  10.5   7.0   8.9   7.9   8.3   8.6   8.9   6.3  None  \n",
       "11  67.5  ...  62.8  59.5  61.9  63.9  57.8  55.5  60.4  54.8  56.7  None  \n",
       "12  54.3  ...  55.2  54.5  53.6  52.8  53.2  52.8  53.1  53.1  52.5  None  \n",
       "13  52.7  ...  52.3  54.8  54.9  51.5  51.1  46.7  48.8  48.9  45.6  None  \n",
       "14  31.5  ...  32.6  34.0  33.6  39.7  34.8  30.5  33.1  33.2  30.5  35.3  \n",
       "15  11.2  ...  12.0  13.4  12.0  13.8  13.6  12.8  12.4  12.3  11.9  None  \n",
       "16  37.6  ...  37.5  36.1  36.4  35.2  34.4  33.2  33.1  32.5  32.4    32  \n",
       "17  40.4  ...  39.8  38.6  38.0  39.2  38.4  39.1  40.1  39.1    38  None  \n",
       "18  33.9  ...  32.2  34.4  32.0  33.5  32.9  32.7  32.7  29.7    32  None  \n",
       "19  55.8  ...  48.7  46.3  47.1  45.0  46.3  44.3  44.1  42.5    39  None  \n",
       "20  46.1  ...  45.0  44.1  45.5  46.3  46.4  45.7  47.6  None  None  None  \n",
       "21  49.5  ...  46.5  46.7  46.2  44.4  44.1  43.7  44.2  43.8  41.9  None  \n",
       "22  14.2  ...  13.2  10.9  16.9  11.0  12.4  14.4  18.3  11.2  12.2  None  \n",
       "23  60.6  ...  65.4  60.7  64.2  59.8  58.7  54.2  52.8    57  54.7  None  \n",
       "24  61.4  ...  57.9  57.3  59.2  57.6  57.7  51.8  55.8  53.1  49.3  None  \n",
       "25  32.6  ...  29.4  33.0  35.2  36.8  32.2  35.8  41.4  36.6  30.6  30.6  \n",
       "26  52.5  ...  51.2  48.9  49.5  48.9  47.8  47.9  46.9  46.3  42.9  41.2  \n",
       "27  32.1  ...  37.0  31.7  30.6  31.5  29.6  31.7  29.3  28.7  28.4  None  \n",
       "28  36.3  ...  36.3  35.4  37.1  36.4  35.5  35.8  34.7  35.5  35.1  32.8  \n",
       "29  74.3  ...  66.7  70.8  67.2  59.6  62.9  61.6  56.5    59  51.1  None  \n",
       "30  58.9  ...  57.1  57.1  55.7  53.8  54.0  54.4  53.4  None  None  None  \n",
       "31  53.6  ...  61.2  54.8  58.4  54.4  53.0  49.2  48.9  44.2  45.6  None  \n",
       "32  51.3  ...  51.6  50.6  50.4  49.6  50.3  47.3  48.2  None  None  None  \n",
       "33    21  ...  21.8  21.0  20.0  19.5  19.6  18.9  20.0  19.7  19.1  18.3  \n",
       "34  46.4  ...  42.2  42.2  42.7  40.1  38.9  38.8  37.3  36.1  34.9  None  \n",
       "35  22.6  ...  24.4  28.7  27.8  27.9  30.0  18.5  24.2  19.1  16.1  None  \n",
       "36  30.6  ...  30.5  29.8  28.5  26.8  26.6  26.6  26.9  26.9  28.2  None  \n",
       "37  73.1  ...  79.8  75.6  80.1  81.1  79.3  75.7  73.0  68.3  66.8  None  \n",
       "38   3.2  ...   9.6   4.4   3.3   7.0   2.9   1.2   4.5   2.3   3.8   3.9  \n",
       "39  None  ...  52.0  51.6  49.7  49.1  46.9  46.7  46.6  46.3  46.3  44.8  \n",
       "40  42.6  ...  39.7  38.7  39.5  38.2  38.0  37.2  37.1    37  37.1    36  \n",
       "41  58.6  ...  56.0  54.2  53.8  53.2  51.3  52.8  49.5  48.5  48.2  47.8  \n",
       "42  46.4  ...  44.2  42.1  42.2  43.0  44.8  42.2  42.1  42.5  40.6  41.7  \n",
       "43  48.4  ...  43.8  43.0  42.1  41.0  39.8  38.9  36.9  35.5  34.3  33.1  \n",
       "\n",
       "[44 rows x 22 columns]"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 折线图数据 - 2\n",
    "\n",
    "df_lung = pd.read_csv(\"./data/trends-lung.csv\")\n",
    "df_lung"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "564f230c",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    },
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "temps_l = df_lung.iloc[:,1:]\n",
    "new_c = temps_l.mean(axis=1)\n",
    "df_lung.insert(loc=len(df_lung.columns), column='平均值', value=new_c)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "03e1de77",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Country</th>\n",
       "      <th>1993</th>\n",
       "      <th>1994</th>\n",
       "      <th>1995</th>\n",
       "      <th>1996</th>\n",
       "      <th>1997</th>\n",
       "      <th>1998</th>\n",
       "      <th>1999</th>\n",
       "      <th>2000</th>\n",
       "      <th>2001</th>\n",
       "      <th>...</th>\n",
       "      <th>2005</th>\n",
       "      <th>2006</th>\n",
       "      <th>2007</th>\n",
       "      <th>2008</th>\n",
       "      <th>2009</th>\n",
       "      <th>2010</th>\n",
       "      <th>2011</th>\n",
       "      <th>2012</th>\n",
       "      <th>2013</th>\n",
       "      <th>平均值</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>Turkey*</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>61.2</td>\n",
       "      <td>62</td>\n",
       "      <td>76.3</td>\n",
       "      <td>73.1</td>\n",
       "      <td>...</td>\n",
       "      <td>75.6</td>\n",
       "      <td>80.1</td>\n",
       "      <td>81.1</td>\n",
       "      <td>79.3</td>\n",
       "      <td>75.7</td>\n",
       "      <td>73.0</td>\n",
       "      <td>68.3</td>\n",
       "      <td>66.8</td>\n",
       "      <td>None</td>\n",
       "      <td>77.4500</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Poland*</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>78.5</td>\n",
       "      <td>80.2</td>\n",
       "      <td>79.6</td>\n",
       "      <td>74.3</td>\n",
       "      <td>...</td>\n",
       "      <td>70.8</td>\n",
       "      <td>67.2</td>\n",
       "      <td>59.6</td>\n",
       "      <td>62.9</td>\n",
       "      <td>61.6</td>\n",
       "      <td>56.5</td>\n",
       "      <td>59</td>\n",
       "      <td>51.1</td>\n",
       "      <td>None</td>\n",
       "      <td>64.0250</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Croatia</td>\n",
       "      <td>75.5</td>\n",
       "      <td>70.4</td>\n",
       "      <td>72</td>\n",
       "      <td>77.7</td>\n",
       "      <td>76.2</td>\n",
       "      <td>69.3</td>\n",
       "      <td>78.4</td>\n",
       "      <td>92.9</td>\n",
       "      <td>74.7</td>\n",
       "      <td>...</td>\n",
       "      <td>68.2</td>\n",
       "      <td>64.1</td>\n",
       "      <td>63.7</td>\n",
       "      <td>58.3</td>\n",
       "      <td>63.0</td>\n",
       "      <td>56.5</td>\n",
       "      <td>60.6</td>\n",
       "      <td>56.4</td>\n",
       "      <td>None</td>\n",
       "      <td>63.0375</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Belarus</td>\n",
       "      <td>68.5</td>\n",
       "      <td>71.2</td>\n",
       "      <td>69.4</td>\n",
       "      <td>72.7</td>\n",
       "      <td>69.1</td>\n",
       "      <td>70</td>\n",
       "      <td>66.6</td>\n",
       "      <td>65.3</td>\n",
       "      <td>64.8</td>\n",
       "      <td>...</td>\n",
       "      <td>61.4</td>\n",
       "      <td>62.2</td>\n",
       "      <td>61.4</td>\n",
       "      <td>62.7</td>\n",
       "      <td>61.1</td>\n",
       "      <td>62.6</td>\n",
       "      <td>59.8</td>\n",
       "      <td>56.8</td>\n",
       "      <td>None</td>\n",
       "      <td>62.4875</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Estonia</td>\n",
       "      <td>74.9</td>\n",
       "      <td>71.7</td>\n",
       "      <td>78.3</td>\n",
       "      <td>73.8</td>\n",
       "      <td>74.3</td>\n",
       "      <td>69</td>\n",
       "      <td>69.8</td>\n",
       "      <td>62.7</td>\n",
       "      <td>67.5</td>\n",
       "      <td>...</td>\n",
       "      <td>59.5</td>\n",
       "      <td>61.9</td>\n",
       "      <td>63.9</td>\n",
       "      <td>57.8</td>\n",
       "      <td>55.5</td>\n",
       "      <td>60.4</td>\n",
       "      <td>54.8</td>\n",
       "      <td>56.7</td>\n",
       "      <td>None</td>\n",
       "      <td>60.7125</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>5 rows × 23 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "    Country  1993  1994  1995  1996  1997  1998  1999  2000  2001  ...  2005  \\\n",
       "37  Turkey*  None  None  None  None  None  61.2    62  76.3  73.1  ...  75.6   \n",
       "29  Poland*  None  None  None  None  None  78.5  80.2  79.6  74.3  ...  70.8   \n",
       "7   Croatia  75.5  70.4    72  77.7  76.2  69.3  78.4  92.9  74.7  ...  68.2   \n",
       "1   Belarus  68.5  71.2  69.4  72.7  69.1    70  66.6  65.3  64.8  ...  61.4   \n",
       "11  Estonia  74.9  71.7  78.3  73.8  74.3    69  69.8  62.7  67.5  ...  59.5   \n",
       "\n",
       "    2006  2007  2008  2009  2010  2011  2012  2013      平均值  \n",
       "37  80.1  81.1  79.3  75.7  73.0  68.3  66.8  None  77.4500  \n",
       "29  67.2  59.6  62.9  61.6  56.5    59  51.1  None  64.0250  \n",
       "7   64.1  63.7  58.3  63.0  56.5  60.6  56.4  None  63.0375  \n",
       "1   62.2  61.4  62.7  61.1  62.6  59.8  56.8  None  62.4875  \n",
       "11  61.9  63.9  57.8  55.5  60.4  54.8  56.7  None  60.7125  \n",
       "\n",
       "[5 rows x 23 columns]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_l = df_lung.sort_values(by='平均值', ascending = False)[:5] # 取前5数据\n",
    "df_l"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "72bd7f45",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['None', 'None', 'None', 'None', 'None', '61.2', '62', '76.3', '73.1', '75.2', 75.0, 79.8, 75.6, 80.1, 81.1, 79.3, 75.7, 73.0, '68.3', '66.8', 'None'] ['None', 'None', 'None', 'None', 'None', '78.5', '80.2', '79.6', '74.3', '76', 66.9, 66.7, 70.8, 67.2, 59.6, 62.9, 61.6, 56.5, '59', '51.1', 'None'] ['75.5', '70.4', '72', '77.7', '76.2', '69.3', '78.4', '92.9', '74.7', '71.4', 66.5, 64.0, 68.2, 64.1, 63.7, 58.3, 63.0, 56.5, '60.6', '56.4', 'None'] ['68.5', '71.2', '69.4', '72.7', '69.1', '70', '66.6', '65.3', '64.8', '62.5', 64.2, 64.3, 61.4, 62.2, 61.4, 62.7, 61.1, 62.6, '59.8', '56.8', 'None'] ['74.9', '71.7', '78.3', '73.8', '74.3', '69', '69.8', '62.7', '67.5', '66.2', 63.9, 62.8, 59.5, 61.9, 63.9, 57.8, 55.5, 60.4, '54.8', '56.7', 'None']\n"
     ]
    }
   ],
   "source": [
    "# x轴数据\n",
    "year = list(df_lung)[1:22]\n",
    "year_str = list(map(str, year))\n",
    "\n",
    "# y轴数据\n",
    "temps_l = df_l.iloc[:,1:22]\n",
    "y1_l = temps_l.iloc[0].tolist()\n",
    "y2_l = temps_l.iloc[1].tolist()\n",
    "y3_l = temps_l.iloc[2].tolist()\n",
    "y4_l = temps_l.iloc[3].tolist()\n",
    "y5_l = temps_l.iloc[4].tolist()\n",
    "\n",
    "print(y1_l,y2_l,y3_l,y4_l,y5_l)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "36ef59aa",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    },
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Label</th>\n",
       "      <th>1993</th>\n",
       "      <th>1994</th>\n",
       "      <th>1995</th>\n",
       "      <th>1996</th>\n",
       "      <th>1997</th>\n",
       "      <th>1998</th>\n",
       "      <th>1999</th>\n",
       "      <th>2000</th>\n",
       "      <th>2001</th>\n",
       "      <th>...</th>\n",
       "      <th>2004</th>\n",
       "      <th>2005</th>\n",
       "      <th>2006</th>\n",
       "      <th>2007</th>\n",
       "      <th>2008</th>\n",
       "      <th>2009</th>\n",
       "      <th>2010</th>\n",
       "      <th>2011</th>\n",
       "      <th>2012</th>\n",
       "      <th>2013</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Bulgaria</td>\n",
       "      <td>42.0</td>\n",
       "      <td>43.9</td>\n",
       "      <td>44.6</td>\n",
       "      <td>45.6</td>\n",
       "      <td>46.1</td>\n",
       "      <td>46.6</td>\n",
       "      <td>47.6</td>\n",
       "      <td>46.6</td>\n",
       "      <td>50.6</td>\n",
       "      <td>...</td>\n",
       "      <td>53.2</td>\n",
       "      <td>52.9</td>\n",
       "      <td>53.2</td>\n",
       "      <td>52.8</td>\n",
       "      <td>54.4</td>\n",
       "      <td>54.3</td>\n",
       "      <td>52.3</td>\n",
       "      <td>56.1</td>\n",
       "      <td>55.2</td>\n",
       "      <td>56.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Belarus</td>\n",
       "      <td>34.6</td>\n",
       "      <td>32.5</td>\n",
       "      <td>33.7</td>\n",
       "      <td>35.4</td>\n",
       "      <td>34.2</td>\n",
       "      <td>39.2</td>\n",
       "      <td>36.6</td>\n",
       "      <td>34.7</td>\n",
       "      <td>36.7</td>\n",
       "      <td>...</td>\n",
       "      <td>42.1</td>\n",
       "      <td>40.3</td>\n",
       "      <td>40.5</td>\n",
       "      <td>42.3</td>\n",
       "      <td>42.0</td>\n",
       "      <td>44.0</td>\n",
       "      <td>45.2</td>\n",
       "      <td>45.0</td>\n",
       "      <td>44.8</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Canada*</td>\n",
       "      <td>77.7</td>\n",
       "      <td>77.3</td>\n",
       "      <td>77.9</td>\n",
       "      <td>77.9</td>\n",
       "      <td>80.8</td>\n",
       "      <td>81.2</td>\n",
       "      <td>83.4</td>\n",
       "      <td>78.8</td>\n",
       "      <td>78.6</td>\n",
       "      <td>...</td>\n",
       "      <td>76.4</td>\n",
       "      <td>77.4</td>\n",
       "      <td>77.1</td>\n",
       "      <td>77.4</td>\n",
       "      <td>77.3</td>\n",
       "      <td>79.3</td>\n",
       "      <td>80.9</td>\n",
       "      <td>81.2</td>\n",
       "      <td>78.3</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Chile*</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>25.2</td>\n",
       "      <td>31.9</td>\n",
       "      <td>32.2</td>\n",
       "      <td>30.7</td>\n",
       "      <td>...</td>\n",
       "      <td>34.3</td>\n",
       "      <td>33.1</td>\n",
       "      <td>33.5</td>\n",
       "      <td>36.0</td>\n",
       "      <td>32.1</td>\n",
       "      <td>30.6</td>\n",
       "      <td>25.7</td>\n",
       "      <td>45.3</td>\n",
       "      <td>30.4</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>China*</td>\n",
       "      <td>29.2</td>\n",
       "      <td>29.9</td>\n",
       "      <td>32.0</td>\n",
       "      <td>33.1</td>\n",
       "      <td>34.1</td>\n",
       "      <td>34.0</td>\n",
       "      <td>36.6</td>\n",
       "      <td>39.2</td>\n",
       "      <td>40.9</td>\n",
       "      <td>...</td>\n",
       "      <td>42.6</td>\n",
       "      <td>41.9</td>\n",
       "      <td>44.4</td>\n",
       "      <td>43.1</td>\n",
       "      <td>43.9</td>\n",
       "      <td>45.4</td>\n",
       "      <td>46.0</td>\n",
       "      <td>49.9</td>\n",
       "      <td>50.8</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Colombia*</td>\n",
       "      <td>34.5</td>\n",
       "      <td>40.4</td>\n",
       "      <td>35.9</td>\n",
       "      <td>35.5</td>\n",
       "      <td>43.6</td>\n",
       "      <td>37.8</td>\n",
       "      <td>47.2</td>\n",
       "      <td>48.3</td>\n",
       "      <td>52.0</td>\n",
       "      <td>...</td>\n",
       "      <td>44.6</td>\n",
       "      <td>48.5</td>\n",
       "      <td>51.8</td>\n",
       "      <td>51.5</td>\n",
       "      <td>49.7</td>\n",
       "      <td>42.8</td>\n",
       "      <td>43.6</td>\n",
       "      <td>43.4</td>\n",
       "      <td>43.1</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Costa Rica</td>\n",
       "      <td>31.4</td>\n",
       "      <td>27.0</td>\n",
       "      <td>29.8</td>\n",
       "      <td>32.0</td>\n",
       "      <td>30.6</td>\n",
       "      <td>37.7</td>\n",
       "      <td>36.2</td>\n",
       "      <td>37.7</td>\n",
       "      <td>37.4</td>\n",
       "      <td>...</td>\n",
       "      <td>40.3</td>\n",
       "      <td>39.3</td>\n",
       "      <td>39.4</td>\n",
       "      <td>40.3</td>\n",
       "      <td>42.6</td>\n",
       "      <td>40.7</td>\n",
       "      <td>41.9</td>\n",
       "      <td>43.8</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Croatia</td>\n",
       "      <td>42.1</td>\n",
       "      <td>45.6</td>\n",
       "      <td>48.6</td>\n",
       "      <td>48.7</td>\n",
       "      <td>51.1</td>\n",
       "      <td>49.5</td>\n",
       "      <td>71.3</td>\n",
       "      <td>60.0</td>\n",
       "      <td>60.3</td>\n",
       "      <td>...</td>\n",
       "      <td>56.4</td>\n",
       "      <td>59.5</td>\n",
       "      <td>57.3</td>\n",
       "      <td>66.4</td>\n",
       "      <td>65.9</td>\n",
       "      <td>61.4</td>\n",
       "      <td>63.8</td>\n",
       "      <td>62.1</td>\n",
       "      <td>63.4</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Czechia</td>\n",
       "      <td>49.6</td>\n",
       "      <td>55.5</td>\n",
       "      <td>54.1</td>\n",
       "      <td>53.2</td>\n",
       "      <td>53.1</td>\n",
       "      <td>54.2</td>\n",
       "      <td>57.0</td>\n",
       "      <td>55.4</td>\n",
       "      <td>58.4</td>\n",
       "      <td>...</td>\n",
       "      <td>62.7</td>\n",
       "      <td>61.5</td>\n",
       "      <td>63.5</td>\n",
       "      <td>70.1</td>\n",
       "      <td>67.0</td>\n",
       "      <td>61.6</td>\n",
       "      <td>65.7</td>\n",
       "      <td>65.2</td>\n",
       "      <td>67.0</td>\n",
       "      <td>67.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Denmark</td>\n",
       "      <td>74.4</td>\n",
       "      <td>75.6</td>\n",
       "      <td>77.3</td>\n",
       "      <td>81.0</td>\n",
       "      <td>79.5</td>\n",
       "      <td>82.0</td>\n",
       "      <td>83.3</td>\n",
       "      <td>83.7</td>\n",
       "      <td>86.8</td>\n",
       "      <td>...</td>\n",
       "      <td>85.4</td>\n",
       "      <td>85.3</td>\n",
       "      <td>87.1</td>\n",
       "      <td>86.8</td>\n",
       "      <td>100.4</td>\n",
       "      <td>121.2</td>\n",
       "      <td>105.0</td>\n",
       "      <td>92.5</td>\n",
       "      <td>91.6</td>\n",
       "      <td>94.4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Ecuador*</td>\n",
       "      <td>24.1</td>\n",
       "      <td>30.6</td>\n",
       "      <td>32.1</td>\n",
       "      <td>24.9</td>\n",
       "      <td>26.6</td>\n",
       "      <td>31.5</td>\n",
       "      <td>26.8</td>\n",
       "      <td>32.1</td>\n",
       "      <td>32.9</td>\n",
       "      <td>...</td>\n",
       "      <td>34.3</td>\n",
       "      <td>42.2</td>\n",
       "      <td>39.6</td>\n",
       "      <td>40.8</td>\n",
       "      <td>34.6</td>\n",
       "      <td>33.2</td>\n",
       "      <td>36.6</td>\n",
       "      <td>43.2</td>\n",
       "      <td>44.2</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Estonia</td>\n",
       "      <td>39.1</td>\n",
       "      <td>41.1</td>\n",
       "      <td>41.5</td>\n",
       "      <td>46.4</td>\n",
       "      <td>45.2</td>\n",
       "      <td>48.1</td>\n",
       "      <td>47.0</td>\n",
       "      <td>43.2</td>\n",
       "      <td>47.9</td>\n",
       "      <td>...</td>\n",
       "      <td>51.2</td>\n",
       "      <td>45.3</td>\n",
       "      <td>47.8</td>\n",
       "      <td>53.3</td>\n",
       "      <td>50.6</td>\n",
       "      <td>46.9</td>\n",
       "      <td>56.6</td>\n",
       "      <td>57.0</td>\n",
       "      <td>54.5</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>France*</td>\n",
       "      <td>79.8</td>\n",
       "      <td>82.7</td>\n",
       "      <td>79.8</td>\n",
       "      <td>80.2</td>\n",
       "      <td>89.1</td>\n",
       "      <td>85.3</td>\n",
       "      <td>89.3</td>\n",
       "      <td>91.3</td>\n",
       "      <td>95.6</td>\n",
       "      <td>...</td>\n",
       "      <td>101.9</td>\n",
       "      <td>96.6</td>\n",
       "      <td>95.0</td>\n",
       "      <td>94.7</td>\n",
       "      <td>98.0</td>\n",
       "      <td>93.5</td>\n",
       "      <td>96.0</td>\n",
       "      <td>98.5</td>\n",
       "      <td>95.6</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Germany*</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>80.0</td>\n",
       "      <td>80.3</td>\n",
       "      <td>82.4</td>\n",
       "      <td>82.3</td>\n",
       "      <td>...</td>\n",
       "      <td>78.8</td>\n",
       "      <td>79.1</td>\n",
       "      <td>83.5</td>\n",
       "      <td>86.2</td>\n",
       "      <td>93.1</td>\n",
       "      <td>102.4</td>\n",
       "      <td>99.0</td>\n",
       "      <td>93.0</td>\n",
       "      <td>91.2</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Iceland</td>\n",
       "      <td>68.3</td>\n",
       "      <td>79.1</td>\n",
       "      <td>73.5</td>\n",
       "      <td>56.5</td>\n",
       "      <td>82.9</td>\n",
       "      <td>83.2</td>\n",
       "      <td>85.7</td>\n",
       "      <td>97.7</td>\n",
       "      <td>79.5</td>\n",
       "      <td>...</td>\n",
       "      <td>91.0</td>\n",
       "      <td>86.8</td>\n",
       "      <td>85.1</td>\n",
       "      <td>85.9</td>\n",
       "      <td>94.9</td>\n",
       "      <td>95.5</td>\n",
       "      <td>90.8</td>\n",
       "      <td>94.4</td>\n",
       "      <td>92.4</td>\n",
       "      <td>85.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>India*</td>\n",
       "      <td>21.3</td>\n",
       "      <td>22.1</td>\n",
       "      <td>21.7</td>\n",
       "      <td>23.9</td>\n",
       "      <td>27.1</td>\n",
       "      <td>24.2</td>\n",
       "      <td>25.8</td>\n",
       "      <td>25.2</td>\n",
       "      <td>27.8</td>\n",
       "      <td>...</td>\n",
       "      <td>33.0</td>\n",
       "      <td>34.5</td>\n",
       "      <td>32.9</td>\n",
       "      <td>32.4</td>\n",
       "      <td>30.6</td>\n",
       "      <td>32.0</td>\n",
       "      <td>34.2</td>\n",
       "      <td>35.8</td>\n",
       "      <td>36.1</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Australia</td>\n",
       "      <td>76.4</td>\n",
       "      <td>83.2</td>\n",
       "      <td>84.1</td>\n",
       "      <td>79.6</td>\n",
       "      <td>81.2</td>\n",
       "      <td>83.8</td>\n",
       "      <td>82.0</td>\n",
       "      <td>85.5</td>\n",
       "      <td>86.8</td>\n",
       "      <td>...</td>\n",
       "      <td>83.9</td>\n",
       "      <td>83.0</td>\n",
       "      <td>84.5</td>\n",
       "      <td>81.7</td>\n",
       "      <td>86.3</td>\n",
       "      <td>84.8</td>\n",
       "      <td>86.8</td>\n",
       "      <td>85.6</td>\n",
       "      <td>88.4</td>\n",
       "      <td>92.1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Ireland</td>\n",
       "      <td>-</td>\n",
       "      <td>70.3</td>\n",
       "      <td>68.4</td>\n",
       "      <td>71.1</td>\n",
       "      <td>71.5</td>\n",
       "      <td>72.6</td>\n",
       "      <td>74.6</td>\n",
       "      <td>76.8</td>\n",
       "      <td>80.8</td>\n",
       "      <td>...</td>\n",
       "      <td>82.0</td>\n",
       "      <td>80.7</td>\n",
       "      <td>79.6</td>\n",
       "      <td>87.5</td>\n",
       "      <td>96.7</td>\n",
       "      <td>91.8</td>\n",
       "      <td>89.7</td>\n",
       "      <td>90.5</td>\n",
       "      <td>89.5</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Israel</td>\n",
       "      <td>86.7</td>\n",
       "      <td>82.2</td>\n",
       "      <td>86.5</td>\n",
       "      <td>85.2</td>\n",
       "      <td>87.5</td>\n",
       "      <td>95.0</td>\n",
       "      <td>94.5</td>\n",
       "      <td>95.8</td>\n",
       "      <td>89.8</td>\n",
       "      <td>...</td>\n",
       "      <td>88.1</td>\n",
       "      <td>89.0</td>\n",
       "      <td>82.3</td>\n",
       "      <td>85.4</td>\n",
       "      <td>85.0</td>\n",
       "      <td>84.4</td>\n",
       "      <td>83.6</td>\n",
       "      <td>83.4</td>\n",
       "      <td>86.3</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Italy*</td>\n",
       "      <td>70.2</td>\n",
       "      <td>65.0</td>\n",
       "      <td>73.0</td>\n",
       "      <td>83.0</td>\n",
       "      <td>86.3</td>\n",
       "      <td>90.7</td>\n",
       "      <td>93.2</td>\n",
       "      <td>93.5</td>\n",
       "      <td>92.0</td>\n",
       "      <td>...</td>\n",
       "      <td>86.8</td>\n",
       "      <td>83.5</td>\n",
       "      <td>85.3</td>\n",
       "      <td>86.1</td>\n",
       "      <td>95.7</td>\n",
       "      <td>92.6</td>\n",
       "      <td>93.3</td>\n",
       "      <td>94.9</td>\n",
       "      <td>91.9</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Japan*</td>\n",
       "      <td>29.6</td>\n",
       "      <td>29.4</td>\n",
       "      <td>31.2</td>\n",
       "      <td>31.7</td>\n",
       "      <td>34.7</td>\n",
       "      <td>36.7</td>\n",
       "      <td>36.1</td>\n",
       "      <td>38.5</td>\n",
       "      <td>38.9</td>\n",
       "      <td>...</td>\n",
       "      <td>42.9</td>\n",
       "      <td>46.1</td>\n",
       "      <td>48.8</td>\n",
       "      <td>52.8</td>\n",
       "      <td>51.7</td>\n",
       "      <td>52.9</td>\n",
       "      <td>57.8</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Republic of Korea</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>23.4</td>\n",
       "      <td>23.2</td>\n",
       "      <td>27.1</td>\n",
       "      <td>...</td>\n",
       "      <td>32.2</td>\n",
       "      <td>34.1</td>\n",
       "      <td>35.4</td>\n",
       "      <td>37.8</td>\n",
       "      <td>40.1</td>\n",
       "      <td>41.7</td>\n",
       "      <td>43.9</td>\n",
       "      <td>46.8</td>\n",
       "      <td>47.1</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Kuwait: Kuwaiti</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>38.7</td>\n",
       "      <td>43.8</td>\n",
       "      <td>49.7</td>\n",
       "      <td>39.0</td>\n",
       "      <td>...</td>\n",
       "      <td>50.0</td>\n",
       "      <td>57.0</td>\n",
       "      <td>51.8</td>\n",
       "      <td>50.4</td>\n",
       "      <td>52.4</td>\n",
       "      <td>61.5</td>\n",
       "      <td>65.0</td>\n",
       "      <td>57.7</td>\n",
       "      <td>60.0</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Latvia</td>\n",
       "      <td>35.5</td>\n",
       "      <td>39.7</td>\n",
       "      <td>38.1</td>\n",
       "      <td>42.0</td>\n",
       "      <td>40.8</td>\n",
       "      <td>44.9</td>\n",
       "      <td>45.4</td>\n",
       "      <td>44.8</td>\n",
       "      <td>43.1</td>\n",
       "      <td>...</td>\n",
       "      <td>47.6</td>\n",
       "      <td>45.9</td>\n",
       "      <td>49.7</td>\n",
       "      <td>48.6</td>\n",
       "      <td>48.6</td>\n",
       "      <td>44.5</td>\n",
       "      <td>49.2</td>\n",
       "      <td>58.9</td>\n",
       "      <td>53.2</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Lithuania</td>\n",
       "      <td>39.4</td>\n",
       "      <td>37.7</td>\n",
       "      <td>36.7</td>\n",
       "      <td>42.6</td>\n",
       "      <td>41.9</td>\n",
       "      <td>42.5</td>\n",
       "      <td>45.7</td>\n",
       "      <td>45.8</td>\n",
       "      <td>43.6</td>\n",
       "      <td>...</td>\n",
       "      <td>45.2</td>\n",
       "      <td>44.8</td>\n",
       "      <td>49.5</td>\n",
       "      <td>45.8</td>\n",
       "      <td>51.2</td>\n",
       "      <td>50.2</td>\n",
       "      <td>49.5</td>\n",
       "      <td>53.4</td>\n",
       "      <td>52.4</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Malta</td>\n",
       "      <td>74.0</td>\n",
       "      <td>65.5</td>\n",
       "      <td>63.5</td>\n",
       "      <td>66.4</td>\n",
       "      <td>73.5</td>\n",
       "      <td>72.6</td>\n",
       "      <td>72.3</td>\n",
       "      <td>70.9</td>\n",
       "      <td>64.2</td>\n",
       "      <td>...</td>\n",
       "      <td>66.7</td>\n",
       "      <td>77.5</td>\n",
       "      <td>74.2</td>\n",
       "      <td>75.5</td>\n",
       "      <td>69.3</td>\n",
       "      <td>84.9</td>\n",
       "      <td>84.5</td>\n",
       "      <td>86.6</td>\n",
       "      <td>80.2</td>\n",
       "      <td>75.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>The Netherlands</td>\n",
       "      <td>85.1</td>\n",
       "      <td>86.5</td>\n",
       "      <td>82.4</td>\n",
       "      <td>84.2</td>\n",
       "      <td>83.7</td>\n",
       "      <td>84.9</td>\n",
       "      <td>90.5</td>\n",
       "      <td>90.1</td>\n",
       "      <td>93.2</td>\n",
       "      <td>...</td>\n",
       "      <td>93.2</td>\n",
       "      <td>92.0</td>\n",
       "      <td>95.2</td>\n",
       "      <td>97.1</td>\n",
       "      <td>97.3</td>\n",
       "      <td>98.5</td>\n",
       "      <td>96.6</td>\n",
       "      <td>101.2</td>\n",
       "      <td>101.0</td>\n",
       "      <td>100.7</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>New Zealand</td>\n",
       "      <td>68.7</td>\n",
       "      <td>77.7</td>\n",
       "      <td>75.9</td>\n",
       "      <td>77.5</td>\n",
       "      <td>78.7</td>\n",
       "      <td>81.3</td>\n",
       "      <td>88.2</td>\n",
       "      <td>89.9</td>\n",
       "      <td>86.7</td>\n",
       "      <td>...</td>\n",
       "      <td>81.9</td>\n",
       "      <td>85.9</td>\n",
       "      <td>85.4</td>\n",
       "      <td>83.7</td>\n",
       "      <td>86.3</td>\n",
       "      <td>86.4</td>\n",
       "      <td>84.7</td>\n",
       "      <td>85.4</td>\n",
       "      <td>90.0</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Norway</td>\n",
       "      <td>57.6</td>\n",
       "      <td>58.0</td>\n",
       "      <td>60.8</td>\n",
       "      <td>69.0</td>\n",
       "      <td>71.4</td>\n",
       "      <td>70.0</td>\n",
       "      <td>68.5</td>\n",
       "      <td>72.9</td>\n",
       "      <td>75.5</td>\n",
       "      <td>...</td>\n",
       "      <td>77.4</td>\n",
       "      <td>76.9</td>\n",
       "      <td>73.9</td>\n",
       "      <td>72.9</td>\n",
       "      <td>72.9</td>\n",
       "      <td>70.8</td>\n",
       "      <td>73.7</td>\n",
       "      <td>78.9</td>\n",
       "      <td>73.3</td>\n",
       "      <td>78.3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Poland*</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>39.9</td>\n",
       "      <td>41.4</td>\n",
       "      <td>46.2</td>\n",
       "      <td>45.1</td>\n",
       "      <td>...</td>\n",
       "      <td>37.3</td>\n",
       "      <td>40.2</td>\n",
       "      <td>41.2</td>\n",
       "      <td>41.7</td>\n",
       "      <td>39.9</td>\n",
       "      <td>46.0</td>\n",
       "      <td>40.3</td>\n",
       "      <td>45.2</td>\n",
       "      <td>45.4</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>Slovakia</td>\n",
       "      <td>39.8</td>\n",
       "      <td>40.9</td>\n",
       "      <td>40.5</td>\n",
       "      <td>45.3</td>\n",
       "      <td>44.0</td>\n",
       "      <td>44.9</td>\n",
       "      <td>47.5</td>\n",
       "      <td>46.1</td>\n",
       "      <td>45.5</td>\n",
       "      <td>...</td>\n",
       "      <td>49.8</td>\n",
       "      <td>51.1</td>\n",
       "      <td>53.0</td>\n",
       "      <td>54.9</td>\n",
       "      <td>57.3</td>\n",
       "      <td>59.9</td>\n",
       "      <td>59.1</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>Slovenia</td>\n",
       "      <td>48.2</td>\n",
       "      <td>47.4</td>\n",
       "      <td>51.3</td>\n",
       "      <td>53.4</td>\n",
       "      <td>58.7</td>\n",
       "      <td>58.5</td>\n",
       "      <td>62.2</td>\n",
       "      <td>57.4</td>\n",
       "      <td>58.9</td>\n",
       "      <td>...</td>\n",
       "      <td>63.6</td>\n",
       "      <td>64.0</td>\n",
       "      <td>64.5</td>\n",
       "      <td>65.9</td>\n",
       "      <td>66.0</td>\n",
       "      <td>63.0</td>\n",
       "      <td>71.0</td>\n",
       "      <td>60.8</td>\n",
       "      <td>69.5</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>Spain*</td>\n",
       "      <td>56.1</td>\n",
       "      <td>55.6</td>\n",
       "      <td>56.5</td>\n",
       "      <td>57.5</td>\n",
       "      <td>59.2</td>\n",
       "      <td>61.2</td>\n",
       "      <td>61.9</td>\n",
       "      <td>62.6</td>\n",
       "      <td>62.4</td>\n",
       "      <td>...</td>\n",
       "      <td>61.9</td>\n",
       "      <td>61.2</td>\n",
       "      <td>62.8</td>\n",
       "      <td>63.2</td>\n",
       "      <td>64.6</td>\n",
       "      <td>65.8</td>\n",
       "      <td>65.1</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>Sweden</td>\n",
       "      <td>65.5</td>\n",
       "      <td>72.9</td>\n",
       "      <td>71.9</td>\n",
       "      <td>71.7</td>\n",
       "      <td>72.6</td>\n",
       "      <td>76.9</td>\n",
       "      <td>77.4</td>\n",
       "      <td>78.0</td>\n",
       "      <td>79.3</td>\n",
       "      <td>...</td>\n",
       "      <td>82.0</td>\n",
       "      <td>79.1</td>\n",
       "      <td>79.5</td>\n",
       "      <td>78.6</td>\n",
       "      <td>78.8</td>\n",
       "      <td>77.9</td>\n",
       "      <td>82.5</td>\n",
       "      <td>85.1</td>\n",
       "      <td>82.4</td>\n",
       "      <td>84.4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>Switzerland*</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>87.7</td>\n",
       "      <td>87.4</td>\n",
       "      <td>91.0</td>\n",
       "      <td>89.5</td>\n",
       "      <td>...</td>\n",
       "      <td>86.8</td>\n",
       "      <td>85.3</td>\n",
       "      <td>88.5</td>\n",
       "      <td>83.6</td>\n",
       "      <td>85.7</td>\n",
       "      <td>87.1</td>\n",
       "      <td>88.7</td>\n",
       "      <td>90.8</td>\n",
       "      <td>85.0</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>Brazil*</td>\n",
       "      <td>44.5</td>\n",
       "      <td>48.0</td>\n",
       "      <td>47.3</td>\n",
       "      <td>42.3</td>\n",
       "      <td>51.9</td>\n",
       "      <td>51.1</td>\n",
       "      <td>49.4</td>\n",
       "      <td>55.0</td>\n",
       "      <td>49.5</td>\n",
       "      <td>...</td>\n",
       "      <td>66.5</td>\n",
       "      <td>61.2</td>\n",
       "      <td>60.5</td>\n",
       "      <td>55.3</td>\n",
       "      <td>53.5</td>\n",
       "      <td>55.6</td>\n",
       "      <td>49.5</td>\n",
       "      <td>46.4</td>\n",
       "      <td>52.7</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>Thailand*</td>\n",
       "      <td>12.2</td>\n",
       "      <td>12.8</td>\n",
       "      <td>13.9</td>\n",
       "      <td>15.1</td>\n",
       "      <td>14.0</td>\n",
       "      <td>17.8</td>\n",
       "      <td>16.5</td>\n",
       "      <td>19.0</td>\n",
       "      <td>19.9</td>\n",
       "      <td>...</td>\n",
       "      <td>22.1</td>\n",
       "      <td>22.9</td>\n",
       "      <td>22.7</td>\n",
       "      <td>23.4</td>\n",
       "      <td>24.7</td>\n",
       "      <td>23.8</td>\n",
       "      <td>24.9</td>\n",
       "      <td>25.8</td>\n",
       "      <td>26.2</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>Turkey*</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>32.8</td>\n",
       "      <td>30.2</td>\n",
       "      <td>35.3</td>\n",
       "      <td>35.8</td>\n",
       "      <td>...</td>\n",
       "      <td>40.7</td>\n",
       "      <td>40.6</td>\n",
       "      <td>42.1</td>\n",
       "      <td>41.8</td>\n",
       "      <td>47.7</td>\n",
       "      <td>44.3</td>\n",
       "      <td>42.5</td>\n",
       "      <td>45.5</td>\n",
       "      <td>44.9</td>\n",
       "      <td>-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>Uganda*</td>\n",
       "      <td>19.3</td>\n",
       "      <td>16.9</td>\n",
       "      <td>15.8</td>\n",
       "      <td>17.8</td>\n",
       "      <td>24.9</td>\n",
       "      <td>25.1</td>\n",
       "      <td>18.9</td>\n",
       "      <td>26.4</td>\n",
       "      <td>24.2</td>\n",
       "      <td>...</td>\n",
       "      <td>39.1</td>\n",
       "      <td>29.6</td>\n",
       "      <td>32.4</td>\n",
       "      <td>30.8</td>\n",
       "      <td>33.5</td>\n",
       "      <td>25.3</td>\n",
       "      <td>32.3</td>\n",
       "      <td>24.5</td>\n",
       "      <td>36.5</td>\n",
       "      <td>35.2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>Ukraine</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>-</td>\n",
       "      <td>...</td>\n",
       "      <td>39.8</td>\n",
       "      <td>40.6</td>\n",
       "      <td>39.8</td>\n",
       "      <td>40.2</td>\n",
       "      <td>40.9</td>\n",
       "      <td>40.3</td>\n",
       "      <td>42.6</td>\n",
       "      <td>42.4</td>\n",
       "      <td>42.9</td>\n",
       "      <td>42.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>40</th>\n",
       "      <td>UK, England and Wales *</td>\n",
       "      <td>74.7</td>\n",
       "      <td>75.7</td>\n",
       "      <td>76.2</td>\n",
       "      <td>77.2</td>\n",
       "      <td>81.2</td>\n",
       "      <td>81.7</td>\n",
       "      <td>84.0</td>\n",
       "      <td>82.8</td>\n",
       "      <td>83.0</td>\n",
       "      <td>...</td>\n",
       "      <td>86.4</td>\n",
       "      <td>87.1</td>\n",
       "      <td>85.9</td>\n",
       "      <td>84.9</td>\n",
       "      <td>87.0</td>\n",
       "      <td>86.9</td>\n",
       "      <td>88.0</td>\n",
       "      <td>87.3</td>\n",
       "      <td>87.7</td>\n",
       "      <td>90.2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>UK, Scotland</td>\n",
       "      <td>73.4</td>\n",
       "      <td>72.5</td>\n",
       "      <td>76.0</td>\n",
       "      <td>76.1</td>\n",
       "      <td>77.7</td>\n",
       "      <td>79.7</td>\n",
       "      <td>81.0</td>\n",
       "      <td>81.3</td>\n",
       "      <td>77.0</td>\n",
       "      <td>...</td>\n",
       "      <td>83.6</td>\n",
       "      <td>83.4</td>\n",
       "      <td>84.8</td>\n",
       "      <td>84.8</td>\n",
       "      <td>85.7</td>\n",
       "      <td>87.8</td>\n",
       "      <td>88.1</td>\n",
       "      <td>89.0</td>\n",
       "      <td>89.0</td>\n",
       "      <td>89.4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>UK, Northern Ireland</td>\n",
       "      <td>67.7</td>\n",
       "      <td>73.3</td>\n",
       "      <td>75.6</td>\n",
       "      <td>73.1</td>\n",
       "      <td>72.3</td>\n",
       "      <td>76.6</td>\n",
       "      <td>75.7</td>\n",
       "      <td>77.3</td>\n",
       "      <td>75.2</td>\n",
       "      <td>...</td>\n",
       "      <td>86.6</td>\n",
       "      <td>78.9</td>\n",
       "      <td>71.6</td>\n",
       "      <td>83.5</td>\n",
       "      <td>84.3</td>\n",
       "      <td>86.0</td>\n",
       "      <td>81.3</td>\n",
       "      <td>84.5</td>\n",
       "      <td>84.9</td>\n",
       "      <td>80.8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>USA*</td>\n",
       "      <td>86.5</td>\n",
       "      <td>88.3</td>\n",
       "      <td>88.8</td>\n",
       "      <td>89.8</td>\n",
       "      <td>92.6</td>\n",
       "      <td>93.9</td>\n",
       "      <td>94.4</td>\n",
       "      <td>91.8</td>\n",
       "      <td>92.2</td>\n",
       "      <td>...</td>\n",
       "      <td>84.6</td>\n",
       "      <td>84.0</td>\n",
       "      <td>83.0</td>\n",
       "      <td>84.0</td>\n",
       "      <td>84.1</td>\n",
       "      <td>85.1</td>\n",
       "      <td>82.5</td>\n",
       "      <td>85.1</td>\n",
       "      <td>83.7</td>\n",
       "      <td>84.1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>44 rows × 22 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                      Label  1993  1994  1995  1996  1997  1998  1999  2000  \\\n",
       "0                  Bulgaria  42.0  43.9  44.6  45.6  46.1  46.6  47.6  46.6   \n",
       "1                   Belarus  34.6  32.5  33.7  35.4  34.2  39.2  36.6  34.7   \n",
       "2                   Canada*  77.7  77.3  77.9  77.9  80.8  81.2  83.4  78.8   \n",
       "3                    Chile*     -     -     -     -     -  25.2  31.9  32.2   \n",
       "4                    China*  29.2  29.9  32.0  33.1  34.1  34.0  36.6  39.2   \n",
       "5                 Colombia*  34.5  40.4  35.9  35.5  43.6  37.8  47.2  48.3   \n",
       "6                Costa Rica  31.4  27.0  29.8  32.0  30.6  37.7  36.2  37.7   \n",
       "7                   Croatia  42.1  45.6  48.6  48.7  51.1  49.5  71.3  60.0   \n",
       "8                   Czechia  49.6  55.5  54.1  53.2  53.1  54.2  57.0  55.4   \n",
       "9                   Denmark  74.4  75.6  77.3  81.0  79.5  82.0  83.3  83.7   \n",
       "10                 Ecuador*  24.1  30.6  32.1  24.9  26.6  31.5  26.8  32.1   \n",
       "11                  Estonia  39.1  41.1  41.5  46.4  45.2  48.1  47.0  43.2   \n",
       "12                  France*  79.8  82.7  79.8  80.2  89.1  85.3  89.3  91.3   \n",
       "13                 Germany*     -     -     -     -     -  80.0  80.3  82.4   \n",
       "14                  Iceland  68.3  79.1  73.5  56.5  82.9  83.2  85.7  97.7   \n",
       "15                   India*  21.3  22.1  21.7  23.9  27.1  24.2  25.8  25.2   \n",
       "16                Australia  76.4  83.2  84.1  79.6  81.2  83.8  82.0  85.5   \n",
       "17                  Ireland     -  70.3  68.4  71.1  71.5  72.6  74.6  76.8   \n",
       "18                   Israel  86.7  82.2  86.5  85.2  87.5  95.0  94.5  95.8   \n",
       "19                   Italy*  70.2  65.0  73.0  83.0  86.3  90.7  93.2  93.5   \n",
       "20                   Japan*  29.6  29.4  31.2  31.7  34.7  36.7  36.1  38.5   \n",
       "21        Republic of Korea     -     -     -     -     -     -  23.4  23.2   \n",
       "22          Kuwait: Kuwaiti     -     -     -     -     -  38.7  43.8  49.7   \n",
       "23                   Latvia  35.5  39.7  38.1  42.0  40.8  44.9  45.4  44.8   \n",
       "24                Lithuania  39.4  37.7  36.7  42.6  41.9  42.5  45.7  45.8   \n",
       "25                    Malta  74.0  65.5  63.5  66.4  73.5  72.6  72.3  70.9   \n",
       "26          The Netherlands  85.1  86.5  82.4  84.2  83.7  84.9  90.5  90.1   \n",
       "27              New Zealand  68.7  77.7  75.9  77.5  78.7  81.3  88.2  89.9   \n",
       "28                   Norway  57.6  58.0  60.8  69.0  71.4  70.0  68.5  72.9   \n",
       "29                  Poland*     -     -     -     -     -  39.9  41.4  46.2   \n",
       "30                 Slovakia  39.8  40.9  40.5  45.3  44.0  44.9  47.5  46.1   \n",
       "31                 Slovenia  48.2  47.4  51.3  53.4  58.7  58.5  62.2  57.4   \n",
       "32                   Spain*  56.1  55.6  56.5  57.5  59.2  61.2  61.9  62.6   \n",
       "33                   Sweden  65.5  72.9  71.9  71.7  72.6  76.9  77.4  78.0   \n",
       "34             Switzerland*     -     -     -     -     -  87.7  87.4  91.0   \n",
       "35                  Brazil*  44.5  48.0  47.3  42.3  51.9  51.1  49.4  55.0   \n",
       "36                Thailand*  12.2  12.8  13.9  15.1  14.0  17.8  16.5  19.0   \n",
       "37                  Turkey*     -     -     -     -     -  32.8  30.2  35.3   \n",
       "38                  Uganda*  19.3  16.9  15.8  17.8  24.9  25.1  18.9  26.4   \n",
       "39                  Ukraine     -     -     -     -     -     -     -     -   \n",
       "40  UK, England and Wales *  74.7  75.7  76.2  77.2  81.2  81.7  84.0  82.8   \n",
       "41             UK, Scotland  73.4  72.5  76.0  76.1  77.7  79.7  81.0  81.3   \n",
       "42    UK, Northern Ireland   67.7  73.3  75.6  73.1  72.3  76.6  75.7  77.3   \n",
       "43                     USA*  86.5  88.3  88.8  89.8  92.6  93.9  94.4  91.8   \n",
       "\n",
       "    2001  ...   2004  2005  2006  2007   2008   2009   2010   2011   2012  \\\n",
       "0   50.6  ...   53.2  52.9  53.2  52.8   54.4   54.3   52.3   56.1   55.2   \n",
       "1   36.7  ...   42.1  40.3  40.5  42.3   42.0   44.0   45.2   45.0   44.8   \n",
       "2   78.6  ...   76.4  77.4  77.1  77.4   77.3   79.3   80.9   81.2   78.3   \n",
       "3   30.7  ...   34.3  33.1  33.5  36.0   32.1   30.6   25.7   45.3   30.4   \n",
       "4   40.9  ...   42.6  41.9  44.4  43.1   43.9   45.4   46.0   49.9   50.8   \n",
       "5   52.0  ...   44.6  48.5  51.8  51.5   49.7   42.8   43.6   43.4   43.1   \n",
       "6   37.4  ...   40.3  39.3  39.4  40.3   42.6   40.7   41.9   43.8      -   \n",
       "7   60.3  ...   56.4  59.5  57.3  66.4   65.9   61.4   63.8   62.1   63.4   \n",
       "8   58.4  ...   62.7  61.5  63.5  70.1   67.0   61.6   65.7   65.2   67.0   \n",
       "9   86.8  ...   85.4  85.3  87.1  86.8  100.4  121.2  105.0   92.5   91.6   \n",
       "10  32.9  ...   34.3  42.2  39.6  40.8   34.6   33.2   36.6   43.2   44.2   \n",
       "11  47.9  ...   51.2  45.3  47.8  53.3   50.6   46.9   56.6   57.0   54.5   \n",
       "12  95.6  ...  101.9  96.6  95.0  94.7   98.0   93.5   96.0   98.5   95.6   \n",
       "13  82.3  ...   78.8  79.1  83.5  86.2   93.1  102.4   99.0   93.0   91.2   \n",
       "14  79.5  ...   91.0  86.8  85.1  85.9   94.9   95.5   90.8   94.4   92.4   \n",
       "15  27.8  ...   33.0  34.5  32.9  32.4   30.6   32.0   34.2   35.8   36.1   \n",
       "16  86.8  ...   83.9  83.0  84.5  81.7   86.3   84.8   86.8   85.6   88.4   \n",
       "17  80.8  ...   82.0  80.7  79.6  87.5   96.7   91.8   89.7   90.5   89.5   \n",
       "18  89.8  ...   88.1  89.0  82.3  85.4   85.0   84.4   83.6   83.4   86.3   \n",
       "19  92.0  ...   86.8  83.5  85.3  86.1   95.7   92.6   93.3   94.9   91.9   \n",
       "20  38.9  ...   42.9  46.1  48.8  52.8   51.7   52.9   57.8      -      -   \n",
       "21  27.1  ...   32.2  34.1  35.4  37.8   40.1   41.7   43.9   46.8   47.1   \n",
       "22  39.0  ...   50.0  57.0  51.8  50.4   52.4   61.5   65.0   57.7   60.0   \n",
       "23  43.1  ...   47.6  45.9  49.7  48.6   48.6   44.5   49.2   58.9   53.2   \n",
       "24  43.6  ...   45.2  44.8  49.5  45.8   51.2   50.2   49.5   53.4   52.4   \n",
       "25  64.2  ...   66.7  77.5  74.2  75.5   69.3   84.9   84.5   86.6   80.2   \n",
       "26  93.2  ...   93.2  92.0  95.2  97.1   97.3   98.5   96.6  101.2  101.0   \n",
       "27  86.7  ...   81.9  85.9  85.4  83.7   86.3   86.4   84.7   85.4   90.0   \n",
       "28  75.5  ...   77.4  76.9  73.9  72.9   72.9   70.8   73.7   78.9   73.3   \n",
       "29  45.1  ...   37.3  40.2  41.2  41.7   39.9   46.0   40.3   45.2   45.4   \n",
       "30  45.5  ...   49.8  51.1  53.0  54.9   57.3   59.9   59.1      -      -   \n",
       "31  58.9  ...   63.6  64.0  64.5  65.9   66.0   63.0   71.0   60.8   69.5   \n",
       "32  62.4  ...   61.9  61.2  62.8  63.2   64.6   65.8   65.1      -      -   \n",
       "33  79.3  ...   82.0  79.1  79.5  78.6   78.8   77.9   82.5   85.1   82.4   \n",
       "34  89.5  ...   86.8  85.3  88.5  83.6   85.7   87.1   88.7   90.8   85.0   \n",
       "35  49.5  ...   66.5  61.2  60.5  55.3   53.5   55.6   49.5   46.4   52.7   \n",
       "36  19.9  ...   22.1  22.9  22.7  23.4   24.7   23.8   24.9   25.8   26.2   \n",
       "37  35.8  ...   40.7  40.6  42.1  41.8   47.7   44.3   42.5   45.5   44.9   \n",
       "38  24.2  ...   39.1  29.6  32.4  30.8   33.5   25.3   32.3   24.5   36.5   \n",
       "39     -  ...   39.8  40.6  39.8  40.2   40.9   40.3   42.6   42.4   42.9   \n",
       "40  83.0  ...   86.4  87.1  85.9  84.9   87.0   86.9   88.0   87.3   87.7   \n",
       "41  77.0  ...   83.6  83.4  84.8  84.8   85.7   87.8   88.1   89.0   89.0   \n",
       "42  75.2  ...   86.6  78.9  71.6  83.5   84.3   86.0   81.3   84.5   84.9   \n",
       "43  92.2  ...   84.6  84.0  83.0  84.0   84.1   85.1   82.5   85.1   83.7   \n",
       "\n",
       "     2013  \n",
       "0    56.6  \n",
       "1       -  \n",
       "2       -  \n",
       "3       -  \n",
       "4       -  \n",
       "5       -  \n",
       "6       -  \n",
       "7       -  \n",
       "8    67.9  \n",
       "9    94.4  \n",
       "10      -  \n",
       "11      -  \n",
       "12      -  \n",
       "13      -  \n",
       "14   85.0  \n",
       "15      -  \n",
       "16   92.1  \n",
       "17      -  \n",
       "18      -  \n",
       "19      -  \n",
       "20      -  \n",
       "21      -  \n",
       "22      -  \n",
       "23      -  \n",
       "24      -  \n",
       "25   75.6  \n",
       "26  100.7  \n",
       "27      -  \n",
       "28   78.3  \n",
       "29      -  \n",
       "30      -  \n",
       "31      -  \n",
       "32      -  \n",
       "33   84.4  \n",
       "34      -  \n",
       "35      -  \n",
       "36      -  \n",
       "37      -  \n",
       "38   35.2  \n",
       "39   42.8  \n",
       "40   90.2  \n",
       "41   89.4  \n",
       "42   80.8  \n",
       "43   84.1  \n",
       "\n",
       "[44 rows x 22 columns]"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 折线图数据 - 2\n",
    "\n",
    "df_breast = pd.read_csv(\"./data/trends-breast.csv\")\n",
    "df_breast"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "bb7005f8",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Label</th>\n",
       "      <th>1993</th>\n",
       "      <th>1994</th>\n",
       "      <th>1995</th>\n",
       "      <th>1996</th>\n",
       "      <th>1997</th>\n",
       "      <th>1998</th>\n",
       "      <th>1999</th>\n",
       "      <th>2000</th>\n",
       "      <th>2001</th>\n",
       "      <th>...</th>\n",
       "      <th>2005</th>\n",
       "      <th>2006</th>\n",
       "      <th>2007</th>\n",
       "      <th>2008</th>\n",
       "      <th>2009</th>\n",
       "      <th>2010</th>\n",
       "      <th>2011</th>\n",
       "      <th>2012</th>\n",
       "      <th>2013</th>\n",
       "      <th>平均值</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>France*</td>\n",
       "      <td>79.8</td>\n",
       "      <td>82.7</td>\n",
       "      <td>79.8</td>\n",
       "      <td>80.2</td>\n",
       "      <td>89.1</td>\n",
       "      <td>85.3</td>\n",
       "      <td>89.3</td>\n",
       "      <td>91.3</td>\n",
       "      <td>95.6</td>\n",
       "      <td>...</td>\n",
       "      <td>96.6</td>\n",
       "      <td>95.0</td>\n",
       "      <td>94.7</td>\n",
       "      <td>98.0</td>\n",
       "      <td>93.5</td>\n",
       "      <td>96.0</td>\n",
       "      <td>98.5</td>\n",
       "      <td>95.6</td>\n",
       "      <td>-</td>\n",
       "      <td>97.3125</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>The Netherlands</td>\n",
       "      <td>85.1</td>\n",
       "      <td>86.5</td>\n",
       "      <td>82.4</td>\n",
       "      <td>84.2</td>\n",
       "      <td>83.7</td>\n",
       "      <td>84.9</td>\n",
       "      <td>90.5</td>\n",
       "      <td>90.1</td>\n",
       "      <td>93.2</td>\n",
       "      <td>...</td>\n",
       "      <td>92.0</td>\n",
       "      <td>95.2</td>\n",
       "      <td>97.1</td>\n",
       "      <td>97.3</td>\n",
       "      <td>98.5</td>\n",
       "      <td>96.6</td>\n",
       "      <td>101.2</td>\n",
       "      <td>101.0</td>\n",
       "      <td>100.7</td>\n",
       "      <td>95.2750</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Denmark</td>\n",
       "      <td>74.4</td>\n",
       "      <td>75.6</td>\n",
       "      <td>77.3</td>\n",
       "      <td>81.0</td>\n",
       "      <td>79.5</td>\n",
       "      <td>82.0</td>\n",
       "      <td>83.3</td>\n",
       "      <td>83.7</td>\n",
       "      <td>86.8</td>\n",
       "      <td>...</td>\n",
       "      <td>85.3</td>\n",
       "      <td>87.1</td>\n",
       "      <td>86.8</td>\n",
       "      <td>100.4</td>\n",
       "      <td>121.2</td>\n",
       "      <td>105.0</td>\n",
       "      <td>92.5</td>\n",
       "      <td>91.6</td>\n",
       "      <td>94.4</td>\n",
       "      <td>94.7000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Iceland</td>\n",
       "      <td>68.3</td>\n",
       "      <td>79.1</td>\n",
       "      <td>73.5</td>\n",
       "      <td>56.5</td>\n",
       "      <td>82.9</td>\n",
       "      <td>83.2</td>\n",
       "      <td>85.7</td>\n",
       "      <td>97.7</td>\n",
       "      <td>79.5</td>\n",
       "      <td>...</td>\n",
       "      <td>86.8</td>\n",
       "      <td>85.1</td>\n",
       "      <td>85.9</td>\n",
       "      <td>94.9</td>\n",
       "      <td>95.5</td>\n",
       "      <td>90.8</td>\n",
       "      <td>94.4</td>\n",
       "      <td>92.4</td>\n",
       "      <td>85.0</td>\n",
       "      <td>89.4000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Italy*</td>\n",
       "      <td>70.2</td>\n",
       "      <td>65.0</td>\n",
       "      <td>73.0</td>\n",
       "      <td>83.0</td>\n",
       "      <td>86.3</td>\n",
       "      <td>90.7</td>\n",
       "      <td>93.2</td>\n",
       "      <td>93.5</td>\n",
       "      <td>92.0</td>\n",
       "      <td>...</td>\n",
       "      <td>83.5</td>\n",
       "      <td>85.3</td>\n",
       "      <td>86.1</td>\n",
       "      <td>95.7</td>\n",
       "      <td>92.6</td>\n",
       "      <td>93.3</td>\n",
       "      <td>94.9</td>\n",
       "      <td>91.9</td>\n",
       "      <td>-</td>\n",
       "      <td>89.0250</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>5 rows × 23 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "              Label  1993  1994  1995  1996  1997  1998  1999  2000  2001  \\\n",
       "12          France*  79.8  82.7  79.8  80.2  89.1  85.3  89.3  91.3  95.6   \n",
       "26  The Netherlands  85.1  86.5  82.4  84.2  83.7  84.9  90.5  90.1  93.2   \n",
       "9           Denmark  74.4  75.6  77.3  81.0  79.5  82.0  83.3  83.7  86.8   \n",
       "14          Iceland  68.3  79.1  73.5  56.5  82.9  83.2  85.7  97.7  79.5   \n",
       "19           Italy*  70.2  65.0  73.0  83.0  86.3  90.7  93.2  93.5  92.0   \n",
       "\n",
       "    ...  2005  2006  2007   2008   2009   2010   2011   2012   2013      平均值  \n",
       "12  ...  96.6  95.0  94.7   98.0   93.5   96.0   98.5   95.6      -  97.3125  \n",
       "26  ...  92.0  95.2  97.1   97.3   98.5   96.6  101.2  101.0  100.7  95.2750  \n",
       "9   ...  85.3  87.1  86.8  100.4  121.2  105.0   92.5   91.6   94.4  94.7000  \n",
       "14  ...  86.8  85.1  85.9   94.9   95.5   90.8   94.4   92.4   85.0  89.4000  \n",
       "19  ...  83.5  85.3  86.1   95.7   92.6   93.3   94.9   91.9      -  89.0250  \n",
       "\n",
       "[5 rows x 23 columns]"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "temps_b = df_breast.iloc[:,1:] # 取出除国家列以外的数据\n",
    "new_c = temps_b.mean(axis=1) # 求每行平均值\n",
    "df_breast.insert(loc=len(df_breast.columns), column='平均值', value=new_c) # 在表格最后新添平均值列\n",
    "df_b = df_breast.sort_values(by='平均值', ascending = False)[:5] # 取前5数据\n",
    "df_b"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "6a74db8d",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['79.8', '82.7', '79.8', '80.2', '89.1', '85.3', '89.3', '91.3', '95.6', '98.5', 102.8, 101.9, 96.6, 95.0, 94.7, 98.0, 93.5, 96.0, '98.5', '95.6', '-'] ['85.1', '86.5', '82.4', '84.2', '83.7', '84.9', '90.5', '90.1', '93.2', '91.9', 92.3, 93.2, 92.0, 95.2, 97.1, 97.3, 98.5, 96.6, '101.2', '101.0', '100.7'] ['74.4', '75.6', '77.3', '81.0', '79.5', '82.0', '83.3', '83.7', '86.8', '90.2', 86.4, 85.4, 85.3, 87.1, 86.8, 100.4, 121.2, 105.0, '92.5', '91.6', '94.4'] ['68.3', '79.1', '73.5', '56.5', '82.9', '83.2', '85.7', '97.7', '79.5', '76.9', 85.2, 91.0, 86.8, 85.1, 85.9, 94.9, 95.5, 90.8, '94.4', '92.4', '85.0'] ['70.2', '65.0', '73.0', '83.0', '86.3', '90.7', '93.2', '93.5', '92.0', '88.0', 88.9, 86.8, 83.5, 85.3, 86.1, 95.7, 92.6, 93.3, '94.9', '91.9', '-']\n"
     ]
    }
   ],
   "source": [
    "# y轴数据\n",
    "temps_b = df_b.iloc[:,1:22]\n",
    "y1_b = temps_b.iloc[0].tolist()\n",
    "y2_b = temps_b.iloc[1].tolist()\n",
    "y3_b = temps_b.iloc[2].tolist()\n",
    "y4_b = temps_b.iloc[3].tolist()\n",
    "y5_b = temps_b.iloc[4].tolist()\n",
    "\n",
    "print(y1_b,y2_b,y3_b,y4_b,y5_b)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "1d5d72a8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Cause</th>\n",
       "      <th>Asia</th>\n",
       "      <th>Africa</th>\n",
       "      <th>The Americas</th>\n",
       "      <th>Europe</th>\n",
       "      <th>Oceania</th>\n",
       "      <th>sum</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Obesity</td>\n",
       "      <td>110000</td>\n",
       "      <td>15000</td>\n",
       "      <td>150000</td>\n",
       "      <td>200000</td>\n",
       "      <td>7500</td>\n",
       "      <td>482500</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Infection</td>\n",
       "      <td>1500000</td>\n",
       "      <td>260000</td>\n",
       "      <td>240000</td>\n",
       "      <td>250000</td>\n",
       "      <td>8600</td>\n",
       "      <td>2258600</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Alcohol</td>\n",
       "      <td>430000</td>\n",
       "      <td>23000</td>\n",
       "      <td>99000</td>\n",
       "      <td>180000</td>\n",
       "      <td>7000</td>\n",
       "      <td>739000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>UV Radiation</td>\n",
       "      <td>2180</td>\n",
       "      <td>2790</td>\n",
       "      <td>71180</td>\n",
       "      <td>78000</td>\n",
       "      <td>13900</td>\n",
       "      <td>168050</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "          Cause     Asia  Africa  The Americas  Europe  Oceania      sum\n",
       "0       Obesity   110000   15000        150000  200000     7500   482500\n",
       "1     Infection  1500000  260000        240000  250000     8600  2258600\n",
       "2       Alcohol   430000   23000         99000  180000     7000   739000\n",
       "3  UV Radiation     2180    2790         71180   78000    13900   168050"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 饼图数据\n",
    "df = pd.read_csv('./data/cause.csv', encoding='gbk')\n",
    "df['sum'] = df.iloc[:,1:].apply(lambda x:sum(x), axis=1)\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "d82ee24b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['Obesity', 482500],\n",
       " ['Infection', 2258600],\n",
       " ['Alcohol', 739000],\n",
       " ['UV Radiation', 168050]]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pie_s = df[['Cause','sum']].values.tolist()\n",
    "pie_s"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "7008e2b7",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 多饼图数据\n",
    "a = df[['Cause','Asia']].values.tolist()\n",
    "af = df[['Cause','Africa']].values.tolist()\n",
    "am = df[['Cause','The Americas']].values.tolist()\n",
    "eu = df[['Cause','Europe']].values.tolist()\n",
    "oc = df[['Cause','Oceania']].values.tolist()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "656dff5b",
   "metadata": {
    "pycharm": {
     "name": "#%% md\n"
    }
   },
   "source": [
    "## 地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "3348ecdd",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'world':'https://assets.pyecharts.org/assets/maps/world'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"612e9a012a0442ddbffb6c5400280897\" style=\"width:1100px; height:800px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'world'], function(echarts) {\n",
       "                var chart_612e9a012a0442ddbffb6c5400280897 = echarts.init(\n",
       "                    document.getElementById('612e9a012a0442ddbffb6c5400280897'), 'white', {renderer: 'canvas'});\n",
       "                var option_612e9a012a0442ddbffb6c5400280897 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u603b\\u75c5\\u4f8b\\u6570\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 22817\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 7037\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 58418\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 20327\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 130878\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 9261\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 200021\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 48241\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 16316\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahamas\",\n",
       "                    \"value\": 876\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 1215\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 156775\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 1151\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belarus\",\n",
       "                    \"value\": 41817\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 83267\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 395\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 6747\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bhutan\",\n",
       "                    \"value\": 572\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 15817\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bosnia and Herz.\",\n",
       "                    \"value\": 14673\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 2010\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 592212\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"BruneiDarussalam\",\n",
       "                    \"value\": 987\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 36451\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burkina Faso\",\n",
       "                    \"value\": 12045\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 7929\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"CaboVerde\",\n",
       "                    \"value\": 825\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 18375\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 20745\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 274364\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Rep.\",\n",
       "                    \"value\": 2675\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chad\",\n",
       "                    \"value\": 8575\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 54227\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 4568754\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 113221\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Comoros\",\n",
       "                    \"value\": 609\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dem. Rep. Congo\",\n",
       "                    \"value\": 48839\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo\",\n",
       "                    \"value\": 2478\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 13139\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"C?te d'Ivoire\",\n",
       "                    \"value\": 17300\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 26092\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cuba\",\n",
       "                    \"value\": 46794\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 5241\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Rep.\",\n",
       "                    \"value\": 67003\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 42891\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Djibouti\",\n",
       "                    \"value\": 765\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Rep.\",\n",
       "                    \"value\": 19816\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 29273\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt\",\n",
       "                    \"value\": 134632\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 9626\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eq. Guinea\",\n",
       "                    \"value\": 927\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eritrea\",\n",
       "                    \"value\": 2408\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 7888\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eswatini\",\n",
       "                    \"value\": 992\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ethiopia\",\n",
       "                    \"value\": 77352\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 1487\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 35638\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 467965\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France,Guadeloupe\",\n",
       "                    \"value\": 2127\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France,LaR\\ufffdunion\",\n",
       "                    \"value\": 2965\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France,Martinique\",\n",
       "                    \"value\": 2156\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Caledonia\",\n",
       "                    \"value\": 1175\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"FrenchGuiana\",\n",
       "                    \"value\": 564\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"FrenchPolynesia\",\n",
       "                    \"value\": 861\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 1750\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"GazaStripandWestBank\",\n",
       "                    \"value\": 4779\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Georgia\",\n",
       "                    \"value\": 13181\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 628519\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 24009\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 64530\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guam\",\n",
       "                    \"value\": 417\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 16686\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea\",\n",
       "                    \"value\": 7871\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea-Bissau\",\n",
       "                    \"value\": 1127\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 1148\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": 12404\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 10628\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 66874\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 1681\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 1324413\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 396914\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran\",\n",
       "                    \"value\": 131191\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 33873\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 31855\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 28704\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 415269\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 7197\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 1028658\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 11559\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 35366\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 42116\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dem. Rep. Korea\",\n",
       "                    \"value\": 57656\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Korea\",\n",
       "                    \"value\": 230317\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": 3842\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyzstan\",\n",
       "                    \"value\": 7075\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lao PDR\",\n",
       "                    \"value\": 9133\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 12373\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lebanon\",\n",
       "                    \"value\": 11589\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 1876\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": 3552\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 7661\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 17073\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 3346\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Madagascar\",\n",
       "                    \"value\": 20681\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 17936\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 48639\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 496\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 14185\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 2500\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 3079\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 3050\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 195499\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 5714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Montenegro\",\n",
       "                    \"value\": 3184\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 59370\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 25446\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 74593\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 3345\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 20508\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 35934\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 7992\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": 9787\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nigeria\",\n",
       "                    \"value\": 124815\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Macedonia\",\n",
       "                    \"value\": 7632\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 34902\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oman\",\n",
       "                    \"value\": 3713\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 178388\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 7681\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 12159\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 12920\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 69849\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 153751\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 204575\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 60467\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Puerto Rico\",\n",
       "                    \"value\": 13080\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 1482\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 14306\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 98886\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russia\",\n",
       "                    \"value\": 591371\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 8835\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"SaintLucia\",\n",
       "                    \"value\": 449\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Samoa\",\n",
       "                    \"value\": 374\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"SaoTomeandPrincipe\",\n",
       "                    \"value\": 151\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 27885\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 11317\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 49043\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 4708\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 23632\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovakia\",\n",
       "                    \"value\": 30316\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 14180\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Solomon Is.\",\n",
       "                    \"value\": 606\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Somalia\",\n",
       "                    \"value\": 10134\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 108168\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"S. Sudan\",\n",
       "                    \"value\": 6312\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 282421\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 29604\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 27382\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Suriname\",\n",
       "                    \"value\": 1056\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 62494\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 60483\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syria\",\n",
       "                    \"value\": 20959\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": 5722\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 40464\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 190636\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 132014\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"TheRepublicoftheGambia\",\n",
       "                    \"value\": 1035\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Timor-Leste\",\n",
       "                    \"value\": 814\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 5208\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 3919\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 19446\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 233834\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkmenistan\",\n",
       "                    \"value\": 6897\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 34008\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": 162594\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 4807\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 457960\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 2281658\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 15757\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uzbekistan\",\n",
       "                    \"value\": 32019\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vanuatu\",\n",
       "                    \"value\": 231\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela\",\n",
       "                    \"value\": 58424\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 182563\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen\",\n",
       "                    \"value\": 16476\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 13831\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 16083\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"aspectScale\": 0.75,\n",
       "            \"nameProperty\": \"name\",\n",
       "            \"selectedMode\": false,\n",
       "            \"zoom\": 1,\n",
       "            \"mapValueCalculation\": \"sum\",\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u603b\\u75c5\\u4f8b\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u603b\\u75c5\\u4f8b\\u6570\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2020\\u5e74\\u4e16\\u754c\\u764c\\u75c7\\u786e\\u8bca\\u603b\\u75c5\\u4f8b\\u6570\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCAN\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"4%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 5\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 100000,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#E0ECF8\",\n",
       "                \"#045FB4\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 140,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_612e9a012a0442ddbffb6c5400280897.setOption(option_612e9a012a0442ddbffb6c5400280897);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2347dc66730>"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Map(\n",
    "        init_opts=opts.InitOpts(width=\"1100px\",\n",
    "                                height=\"800px\"\n",
    "        )\n",
    "    )\n",
    "    .add(\"总病例数\", map_inum, \"world\")\n",
    "    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(title=\"2020年世界癌症确诊总病例数\",\n",
    "                                 subtitle=\"数据来源：GLOBOCAN\",\n",
    "                                 pos_right=\"center\",\n",
    "                                 pos_top=\"4%\",\n",
    "                                 item_gap=5),\n",
    "        visualmap_opts=opts.VisualMapOpts(max_=100000,\n",
    "                                         range_color=['#E0ECF8','#045FB4']),\n",
    "    )\n",
    "#     .render(\"map_world.html\")\n",
    ")\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "024eff0d",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'world':'https://assets.pyecharts.org/assets/maps/world'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"f1607ced0a85451eb88e388169d909e2\" style=\"width:1100px; height:800px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'world'], function(echarts) {\n",
       "                var chart_f1607ced0a85451eb88e388169d909e2 = echarts.init(\n",
       "                    document.getElementById('f1607ced0a85451eb88e388169d909e2'), 'white', {renderer: 'canvas'});\n",
       "                var option_f1607ced0a85451eb88e388169d909e2 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u6b7b\\u4ea1\\u75c5\\u4f8b\\u6570\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 16018\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 3978\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 32802\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 12599\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 70074\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 6096\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 48236\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 22495\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 10466\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahamas\",\n",
       "                    \"value\": 467\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 593\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 108990\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 743\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belarus\",\n",
       "                    \"value\": 21281\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 30079\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 213\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 4662\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bhutan\",\n",
       "                    \"value\": 456\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 9935\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bosnia and Herz.\",\n",
       "                    \"value\": 9209\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 1112\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 259949\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"BruneiDarussalam\",\n",
       "                    \"value\": 434\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 19460\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burkina Faso\",\n",
       "                    \"value\": 8695\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 5701\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"CaboVerde\",\n",
       "                    \"value\": 488\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 12638\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 13199\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 86684\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Rep.\",\n",
       "                    \"value\": 1957\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chad\",\n",
       "                    \"value\": 6083\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 28584\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 3002899\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 54987\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Comoros\",\n",
       "                    \"value\": 411\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dem. Rep. Congo\",\n",
       "                    \"value\": 34412\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo\",\n",
       "                    \"value\": 1595\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 6028\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"C?te d'Ivoire\",\n",
       "                    \"value\": 14326\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 27189\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cuba\",\n",
       "                    \"value\": 2457\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 27468\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Rep.\",\n",
       "                    \"value\": 11760\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 17348\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Djibouti\",\n",
       "                    \"value\": 527\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Rep.\",\n",
       "                    \"value\": 12107\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 15123\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt\",\n",
       "                    \"value\": 89042\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 5301\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eq. Guinea\",\n",
       "                    \"value\": 592\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eritrea\",\n",
       "                    \"value\": 1670\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 4009\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eswatini\",\n",
       "                    \"value\": 613\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ethiopia\",\n",
       "                    \"value\": 51865\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 825\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 13392\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 185621\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France,Guadeloupe\",\n",
       "                    \"value\": 845\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France,LaR\\ufffdunion\",\n",
       "                    \"value\": 1523\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France,Martinique\",\n",
       "                    \"value\": 881\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Caledonia\",\n",
       "                    \"value\": 464\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"FrenchGuiana\",\n",
       "                    \"value\": 219\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"FrenchPolynesia\",\n",
       "                    \"value\": 479\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 1030\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"GazaStripandWestBank\",\n",
       "                    \"value\": 2895\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Georgia\",\n",
       "                    \"value\": 8215\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 252065\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 15802\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 33166\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guam\",\n",
       "                    \"value\": 287\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 9609\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea\",\n",
       "                    \"value\": 5888\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea-Bissau\",\n",
       "                    \"value\": 836\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 565\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": 9245\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 6378\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 32868\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 641\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 851678\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 234511\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran\",\n",
       "                    \"value\": 79136\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 19786\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 10385\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 13050\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 174759\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 4576\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 420124\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 6190\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 20959\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 27092\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dem. Rep. Korea\",\n",
       "                    \"value\": 39963\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Korea\",\n",
       "                    \"value\": 88597\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": 1719\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyzstan\",\n",
       "                    \"value\": 4680\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lao PDR\",\n",
       "                    \"value\": 6208\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 5827\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lebanon\",\n",
       "                    \"value\": 6438\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 1256\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": 2603\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 4750\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 8168\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 1170\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Madagascar\",\n",
       "                    \"value\": 13837\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 12454\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 29530\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 264\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 10234\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 966\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 2121\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 1504\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 90222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 4469\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Montenegro\",\n",
       "                    \"value\": 1765\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 35265\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 18014\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 52941\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 1876\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 13629\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 10508\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 4560\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": 7382\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nigeria\",\n",
       "                    \"value\": 78899\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Macedonia\",\n",
       "                    \"value\": 4224\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 11980\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oman\",\n",
       "                    \"value\": 2029\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 117149\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 3760\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 7276\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 6565\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 34976\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 92606\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 119319\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 30168\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Puerto Rico\",\n",
       "                    \"value\": 5570\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 704\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 8351\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 54486\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russia\",\n",
       "                    \"value\": 312122\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 6044\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"SaintLucia\",\n",
       "                    \"value\": 232\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Samoa\",\n",
       "                    \"value\": 218\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"SaoTomeandPrincipe\",\n",
       "                    \"value\": 103\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 13069\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 7893\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 28107\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 3389\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 12130\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovakia\",\n",
       "                    \"value\": 16279\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 6592\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Solomon Is.\",\n",
       "                    \"value\": 308\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Somalia\",\n",
       "                    \"value\": 7439\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 56802\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"S. Sudan\",\n",
       "                    \"value\": 4633\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 113054\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 16691\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 17055\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Suriname\",\n",
       "                    \"value\": 658\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 24464\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 19036\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syria\",\n",
       "                    \"value\": 12967\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": 3843\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 26945\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 124866\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 49008\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"TheRepublicoftheGambia\",\n",
       "                    \"value\": 810\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Timor-Leste\",\n",
       "                    \"value\": 539\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 3468\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 2239\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 11855\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 126335\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkmenistan\",\n",
       "                    \"value\": 4335\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 22992\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": 84194\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 1896\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 179648\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 612390\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 8577\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uzbekistan\",\n",
       "                    \"value\": 20855\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vanuatu\",\n",
       "                    \"value\": 149\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela\",\n",
       "                    \"value\": 31177\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 122690\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen\",\n",
       "                    \"value\": 12103\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 8672\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 10676\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"aspectScale\": 0.75,\n",
       "            \"nameProperty\": \"name\",\n",
       "            \"selectedMode\": false,\n",
       "            \"zoom\": 1,\n",
       "            \"mapValueCalculation\": \"sum\",\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u6b7b\\u4ea1\\u75c5\\u4f8b\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u6b7b\\u4ea1\\u75c5\\u4f8b\\u6570\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2020\\u5e74\\u4e16\\u754c\\u764c\\u75c7\\u6b7b\\u4ea1\\u603b\\u75c5\\u4f8b\\u6570\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCAN\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"4%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 5\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 100000,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#F6CECE\",\n",
       "                \"#DF0101\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 140,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_f1607ced0a85451eb88e388169d909e2.setOption(option_f1607ced0a85451eb88e388169d909e2);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2347dca9160>"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Map(\n",
    "        init_opts=opts.InitOpts(width=\"1100px\",\n",
    "                                height=\"800px\"\n",
    "        )\n",
    "    )\n",
    "    .add(\"死亡病例数\", map_mnum, \"world\")\n",
    "    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(title=\"2020年世界癌症死亡总病例数\",\n",
    "                                 subtitle=\"数据来源：GLOBOCAN\",\n",
    "                                 pos_right=\"center\",\n",
    "                                 pos_top=\"4%\",\n",
    "                                 item_gap=5),\n",
    "        visualmap_opts=opts.VisualMapOpts(max_=100000,\n",
    "                                         range_color=['#F6CECE','#DF0101']),\n",
    "    )\n",
    "#     .render(\"map_world.html\")\n",
    ")\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "646e32e7",
   "metadata": {
    "pycharm": {
     "name": "#%% md\n"
    }
   },
   "source": [
    "## 堆叠条形图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "9eb2c178",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    },
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"6cf8514d8ec54ebc8adca49e354efc11\" style=\"width:1100px; height:800px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_6cf8514d8ec54ebc8adca49e354efc11 = echarts.init(\n",
       "                    document.getElementById('6cf8514d8ec54ebc8adca49e354efc11'), 'white', {renderer: 'canvas'});\n",
       "                var option_6cf8514d8ec54ebc8adca49e354efc11 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                2261419,\n",
       "                2206771,\n",
       "                1931590,\n",
       "                1414259,\n",
       "                1089103,\n",
       "                905677,\n",
       "                604127,\n",
       "                604100,\n",
       "                586202,\n",
       "                573278\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"stack\": \"stack1\",\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                684996,\n",
       "                1796144,\n",
       "                935173,\n",
       "                375304,\n",
       "                768793,\n",
       "                830180,\n",
       "                341831,\n",
       "                544076,\n",
       "                43646,\n",
       "                212536\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"stack\": \"stack1\",\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\",\n",
       "                \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\": true,\n",
       "                \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"\\u4e73\\u817a\\u764c\",\n",
       "                \"\\u80ba\\u764c\",\n",
       "                \"\\u7ed3\\u76f4\\u80a0\\u764c\",\n",
       "                \"\\u524d\\u5217\\u817a\\u764c\",\n",
       "                \"\\u80c3\\u764c\",\n",
       "                \"\\u809d\\u764c\",\n",
       "                \"\\u5bab\\u9888\\u764c\",\n",
       "                \"\\u98df\\u9053\\u764c\",\n",
       "                \"\\u7532\\u72b6\\u817a\\u764c\",\n",
       "                \"\\u8180\\u80f1\\u764c\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u4e16\\u754c\\u53d1\\u75c5\\u6570\\u524d10\\u764c\\u75c7\\u53d1\\u75c5\\u4e0e\\u6b7b\\u4ea1\\u60c5\\u51b5\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCAN\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"5%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_6cf8514d8ec54ebc8adca49e354efc11.setOption(option_6cf8514d8ec54ebc8adca49e354efc11);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2347dc87760>"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Bar(init_opts=opts.InitOpts(width=\"1100px\",\n",
    "                                height=\"800px\"\n",
    "    )\n",
    "    )\n",
    "    .add_xaxis(sta_x)\n",
    "    .add_yaxis(\"发病案例数\", sta_inum, stack=\"stack1\")\n",
    "    .add_yaxis(\"死亡案例数\", sta_mnum, stack=\"stack1\")\n",
    "    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(\n",
    "            title=\"世界发病数前10癌症发病与死亡情况\",\n",
    "            subtitle=\"数据来源：GLOBOCAN\",\n",
    "            pos_right=\"center\",\n",
    "            pos_top=\"5%\"\n",
    "        ))\n",
    "#     .render(\"bar_stack0.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b4a497b8",
   "metadata": {
    "pycharm": {
     "name": "#%% md\n"
    }
   },
   "source": [
    "## 条形图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "cc2a990e",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"4298c9abfd5c422aa1687bc115ba113e\" style=\"width:1200px; height:800px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_4298c9abfd5c422aa1687bc115ba113e = echarts.init(\n",
       "                    document.getElementById('4298c9abfd5c422aa1687bc115ba113e'), 'white', {renderer: 'canvas'});\n",
       "                var option_4298c9abfd5c422aa1687bc115ba113e = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                \"132414\",\n",
       "                \"139756\",\n",
       "                \"2261419\",\n",
       "                \"604127\",\n",
       "                \"865630\",\n",
       "                \"417367\",\n",
       "                \"74887\",\n",
       "                \"34106\",\n",
       "                \"14000\",\n",
       "                \"10857\",\n",
       "                \"160039\",\n",
       "                \"24350\",\n",
       "                \"205016\",\n",
       "                \"113502\",\n",
       "                \"273357\",\n",
       "                \"770828\",\n",
       "                \"150791\",\n",
       "                \"9310\",\n",
       "                \"77791\",\n",
       "                \"36983\",\n",
       "                \"240201\",\n",
       "                \"185750\",\n",
       "                \"19367\",\n",
       "                \"313959\",\n",
       "                \"232908\",\n",
       "                \"No Data\",\n",
       "                \"No Data\",\n",
       "                \"23889\",\n",
       "                \"369580\",\n",
       "                \"No Data\",\n",
       "                \"448915\",\n",
       "                \"17908\",\n",
       "                \"45240\"\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"label\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"inside\",\n",
       "                    \"color\": \"#fff\",\n",
       "                    \"margin\": 8\n",
       "                },\n",
       "                \"data\": [\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5927\\u503c\",\n",
       "                        \"type\": \"max\"\n",
       "                    },\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5c0f\\u503c\",\n",
       "                        \"type\": \"min\"\n",
       "                    }\n",
       "                ]\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                \"53751\",\n",
       "                \"113052\",\n",
       "                \"684996\",\n",
       "                \"341831\",\n",
       "                \"419536\",\n",
       "                \"97370\",\n",
       "                \"54430\",\n",
       "                \"9088\",\n",
       "                \"6296\",\n",
       "                \"5157\",\n",
       "                \"63768\",\n",
       "                \"14489\",\n",
       "                \"133776\",\n",
       "                \"52735\",\n",
       "                \"252658\",\n",
       "                \"607465\",\n",
       "                \"24658\",\n",
       "                \"7597\",\n",
       "                \"51880\",\n",
       "                \"21914\",\n",
       "                \"112576\",\n",
       "                \"169763\",\n",
       "                \"8553\",\n",
       "                \"207252\",\n",
       "                \"219163\",\n",
       "                \"No Data\",\n",
       "                \"No Data\",\n",
       "                \"9425\",\n",
       "                \"266005\",\n",
       "                \"No Data\",\n",
       "                \"27740\",\n",
       "                \"7995\",\n",
       "                \"17427\"\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"label\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"inside\",\n",
       "                    \"color\": \"#fff\",\n",
       "                    \"margin\": 8\n",
       "                },\n",
       "                \"data\": [\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5927\\u503c\",\n",
       "                        \"type\": \"max\"\n",
       "                    },\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5c0f\\u503c\",\n",
       "                        \"type\": \"min\"\n",
       "                    }\n",
       "                ]\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\",\n",
       "                \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\": true,\n",
       "                \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"\\u8180\\u80f1\\u764c\",\n",
       "                \"\\u8111\\u3001\\u4e2d\\u67a2\\u795e\\u7ecf\\u7cfb\\u7edf\\u764c\",\n",
       "                \"\\u4e73\\u817a\\u764c\",\n",
       "                \"\\u5bab\\u9888\\u764c\",\n",
       "                \"\\u7ed3\\u76f4\\u80a0\\u764c\",\n",
       "                \"\\u5b50\\u5bab\\u764c\",\n",
       "                \"\\u80c6\\u56ca\",\n",
       "                \"\\u970d\\u5947\\u91d1\\u6dcb\\u5df4\\u7624\",\n",
       "                \"\\u4e0b\\u54bd\\u764c\",\n",
       "                \"\\u5361\\u6ce2\\u897f\\u8089\\u7624\",\n",
       "                \"\\u80be\\u764c\",\n",
       "                \"\\u54bd\\u764c\",\n",
       "                \"\\u767d\\u8840\\u75c5\",\n",
       "                \"\\u5507\\u3001\\u53e3\\u8154\\u764c\",\n",
       "                \"\\u809d\\u764c\",\n",
       "                \"\\u80ba\\u764c\",\n",
       "                \"\\u9ed1\\u8272\\u7d20\\u7624\",\n",
       "                \"\\u95f4\\u76ae\\u7624\",\n",
       "                \"\\u591a\\u53d1\\u6027\\u9aa8\\u9ad3\\u764c\",\n",
       "                \"\\u9f3b\\u54bd\\u764c\",\n",
       "                \"\\u975e\\u970d\\u5947\\u91d1\\u6dcb\\u5df4\\u7624\",\n",
       "                \"\\u98df\\u9053\\u764c\",\n",
       "                \"\\u54bd\\u5589\\u764c\",\n",
       "                \"\\u5375\\u5de2\\u764c\",\n",
       "                \"\\u80f0\\u817a\\u764c\",\n",
       "                \"\\u9634\\u830e\\u764c\",\n",
       "                \"\\u524d\\u5217\\u817a\\u764c\",\n",
       "                \"\\u553e\\u6db2\\u817a\\u764c\",\n",
       "                \"\\u80c3\\u764c\",\n",
       "                \"\\u777e\\u4e38\\u764c\",\n",
       "                \"\\u7532\\u72b6\\u817a\\u764c\",\n",
       "                \"\\u9634\\u9053\\u764c\",\n",
       "                \"\\u5916\\u9634\\u764c\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2020\\u5e74\\u4e16\\u754c\\u5973\\u6027\\u60a3\\u764c\\u60c5\\u51b5\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCAN\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"5%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_4298c9abfd5c422aa1687bc115ba113e.setOption(option_4298c9abfd5c422aa1687bc115ba113e);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2347dcc6e20>"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Bar(init_opts=opts.InitOpts(\n",
    "        width=\"1200px\",\n",
    "        height=\"800px\"\n",
    "    )\n",
    "    )\n",
    "    .add_xaxis(bar_x)\n",
    "    .add_yaxis(\"发病案例数\", bar_fi)\n",
    "    .add_yaxis(\"死亡案例数\", bar_fm)\n",
    "    .reversal_axis()\n",
    "    .set_global_opts(title_opts=opts.TitleOpts(\n",
    "        title=\"2020年世界女性患癌情况\",\n",
    "        subtitle=\"数据来源：GLOBOCAN\",\n",
    "        pos_right=\"center\",\n",
    "        pos_top=\"5%\"\n",
    "    ))\n",
    "    .set_series_opts(\n",
    "        label_opts=opts.LabelOpts(is_show=False),\n",
    "        markpoint_opts=opts.MarkPointOpts(\n",
    "            data=[\n",
    "                opts.MarkPointItem(type_=\"max\", name=\"最大值\"),\n",
    "                opts.MarkPointItem(type_=\"min\", name=\"最小值\"),\n",
    "#                 opts.MarkPointItem(type_=\"average\", name=\"平均值\"),\n",
    "            ]\n",
    "        ),\n",
    "    )\n",
    "#     .render(\"bar_markpoint_type.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "23dce02c",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"50a05ac355f8497f9802570ad51ba904\" style=\"width:1200px; height:800px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_50a05ac355f8497f9802570ad51ba904 = echarts.init(\n",
       "                    document.getElementById('50a05ac355f8497f9802570ad51ba904'), 'white', {renderer: 'canvas'});\n",
       "                var option_50a05ac355f8497f9802570ad51ba904 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                \"440864\",\n",
       "                \"168346\",\n",
       "                \"No Data\",\n",
       "                \"No Data\",\n",
       "                \"1065960\",\n",
       "                \"No Data\",\n",
       "                \"41062\",\n",
       "                \"48981\",\n",
       "                \"70254\",\n",
       "                \"23413\",\n",
       "                \"271249\",\n",
       "                \"160265\",\n",
       "                \"269503\",\n",
       "                \"173844\",\n",
       "                \"632320\",\n",
       "                \"1435943\",\n",
       "                \"173844\",\n",
       "                \"21560\",\n",
       "                \"98613\",\n",
       "                \"96371\",\n",
       "                \"304151\",\n",
       "                \"418350\",\n",
       "                \"79045\",\n",
       "                \"No Data\",\n",
       "                \"262865\",\n",
       "                \"36068\",\n",
       "                \"1414259\",\n",
       "                \"29694\",\n",
       "                \"719523\",\n",
       "                \"74458\",\n",
       "                \"137287\",\n",
       "                \"No Data\",\n",
       "                \"No Data\"\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"label\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"inside\",\n",
       "                    \"color\": \"#fff\",\n",
       "                    \"margin\": 8\n",
       "                },\n",
       "                \"data\": [\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5927\\u503c\",\n",
       "                        \"type\": \"max\"\n",
       "                    },\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5c0f\\u503c\",\n",
       "                        \"type\": \"min\"\n",
       "                    }\n",
       "                ]\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\",\n",
       "            \"legendHoverLink\": true,\n",
       "            \"data\": [\n",
       "                \"158785\",\n",
       "                \"138277\",\n",
       "                \"No Data\",\n",
       "                \"No Data\",\n",
       "                \"515637\",\n",
       "                \"No Data\",\n",
       "                \"30265\",\n",
       "                \"14288\",\n",
       "                \"32303\",\n",
       "                \"9929\",\n",
       "                \"115600\",\n",
       "                \"85351\",\n",
       "                \"177818\",\n",
       "                \"32385\",\n",
       "                \"577522\",\n",
       "                \"1188679\",\n",
       "                \"32385\",\n",
       "                \"18681\",\n",
       "                \"65197\",\n",
       "                \"58094\",\n",
       "                \"147217\",\n",
       "                \"374313\",\n",
       "                \"39590\",\n",
       "                \"No Data\",\n",
       "                \"246840\",\n",
       "                \"13211\",\n",
       "                \"375304\",\n",
       "                \"13353\",\n",
       "                \"502788\",\n",
       "                \"9334\",\n",
       "                \"15906\",\n",
       "                \"No Data\",\n",
       "                \"No Data\"\n",
       "            ],\n",
       "            \"showBackground\": false,\n",
       "            \"barMinHeight\": 0,\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"barGap\": \"30%\",\n",
       "            \"large\": false,\n",
       "            \"largeThreshold\": 400,\n",
       "            \"seriesLayoutBy\": \"column\",\n",
       "            \"datasetIndex\": 0,\n",
       "            \"clip\": true,\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 2,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"label\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"inside\",\n",
       "                    \"color\": \"#fff\",\n",
       "                    \"margin\": 8\n",
       "                },\n",
       "                \"data\": [\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5927\\u503c\",\n",
       "                        \"type\": \"max\"\n",
       "                    },\n",
       "                    {\n",
       "                        \"name\": \"\\u6700\\u5c0f\\u503c\",\n",
       "                        \"type\": \"min\"\n",
       "                    }\n",
       "                ]\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\",\n",
       "                \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u53d1\\u75c5\\u6848\\u4f8b\\u6570\": true,\n",
       "                \"\\u6b7b\\u4ea1\\u6848\\u4f8b\\u6570\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"\\u8180\\u80f1\\u764c\",\n",
       "                \"\\u8111\\u3001\\u4e2d\\u67a2\\u795e\\u7ecf\\u7cfb\\u7edf\\u764c\",\n",
       "                \"\\u4e73\\u817a\\u764c\",\n",
       "                \"\\u5bab\\u9888\\u764c\",\n",
       "                \"\\u7ed3\\u76f4\\u80a0\\u764c\",\n",
       "                \"\\u5b50\\u5bab\\u764c\",\n",
       "                \"\\u80c6\\u56ca\",\n",
       "                \"\\u970d\\u5947\\u91d1\\u6dcb\\u5df4\\u7624\",\n",
       "                \"\\u4e0b\\u54bd\\u764c\",\n",
       "                \"\\u5361\\u6ce2\\u897f\\u8089\\u7624\",\n",
       "                \"\\u80be\\u764c\",\n",
       "                \"\\u54bd\\u764c\",\n",
       "                \"\\u767d\\u8840\\u75c5\",\n",
       "                \"\\u5507\\u3001\\u53e3\\u8154\\u764c\",\n",
       "                \"\\u809d\\u764c\",\n",
       "                \"\\u80ba\\u764c\",\n",
       "                \"\\u9ed1\\u8272\\u7d20\\u7624\",\n",
       "                \"\\u95f4\\u76ae\\u7624\",\n",
       "                \"\\u591a\\u53d1\\u6027\\u9aa8\\u9ad3\\u764c\",\n",
       "                \"\\u9f3b\\u54bd\\u764c\",\n",
       "                \"\\u975e\\u970d\\u5947\\u91d1\\u6dcb\\u5df4\\u7624\",\n",
       "                \"\\u98df\\u9053\\u764c\",\n",
       "                \"\\u54bd\\u5589\\u764c\",\n",
       "                \"\\u5375\\u5de2\\u764c\",\n",
       "                \"\\u80f0\\u817a\\u764c\",\n",
       "                \"\\u9634\\u830e\\u764c\",\n",
       "                \"\\u524d\\u5217\\u817a\\u764c\",\n",
       "                \"\\u553e\\u6db2\\u817a\\u764c\",\n",
       "                \"\\u80c3\\u764c\",\n",
       "                \"\\u777e\\u4e38\\u764c\",\n",
       "                \"\\u7532\\u72b6\\u817a\\u764c\",\n",
       "                \"\\u9634\\u9053\\u764c\",\n",
       "                \"\\u5916\\u9634\\u764c\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2020\\u5e74\\u4e16\\u754c\\u7537\\u6027\\u60a3\\u764c\\u60c5\\u51b5\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCAN\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"5%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_50a05ac355f8497f9802570ad51ba904.setOption(option_50a05ac355f8497f9802570ad51ba904);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2347dca9cd0>"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Bar(init_opts=opts.InitOpts(\n",
    "        width=\"1200px\",\n",
    "        height=\"800px\"\n",
    "    )\n",
    "    )\n",
    "    .add_xaxis(bar_x)\n",
    "    .add_yaxis(\"发病案例数\", bar_mi)\n",
    "    .add_yaxis(\"死亡案例数\", bar_mm)\n",
    "    .reversal_axis()\n",
    "    .set_global_opts(title_opts=opts.TitleOpts(\n",
    "        title=\"2020年世界男性患癌情况\",\n",
    "        subtitle=\"数据来源：GLOBOCAN\",\n",
    "        pos_right=\"center\",\n",
    "        pos_top=\"5%\"\n",
    "    ))\n",
    "    .set_series_opts(\n",
    "        label_opts=opts.LabelOpts(is_show=False),\n",
    "        markpoint_opts=opts.MarkPointOpts(\n",
    "            data=[\n",
    "                opts.MarkPointItem(type_=\"max\", name=\"最大值\"),\n",
    "                opts.MarkPointItem(type_=\"min\", name=\"最小值\"),\n",
    "#                 opts.MarkPointItem(type_=\"average\", name=\"平均值\"),\n",
    "            ]\n",
    "        ),\n",
    "    )\n",
    "#     .render(\"bar_markpoint_type.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d9b25820",
   "metadata": {
    "pycharm": {
     "name": "#%% md\n"
    }
   },
   "source": [
    "## 折线图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "ba185a0d",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"1b768f031b5f412a8bd7ec1f0604d540\" style=\"width:1200px; height:600px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_1b768f031b5f412a8bd7ec1f0604d540 = echarts.init(\n",
       "                    document.getElementById('1b768f031b5f412a8bd7ec1f0604d540'), 'white', {renderer: 'canvas'});\n",
       "                var option_1b768f031b5f412a8bd7ec1f0604d540 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u571f\\u8033\\u5176\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"61.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"62\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"76.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"73.1\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"75.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    75.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    79.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    75.6\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    80.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    81.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    79.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    75.7\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    73.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"68.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"66.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"None\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"red\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u6ce2\\u5170\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"None\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"78.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"80.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"79.6\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"74.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"76\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    66.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    66.7\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    70.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    67.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    59.6\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    62.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    61.6\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    56.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"59\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"51.1\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"None\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"blue\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u514b\\u7f57\\u5730\\u4e9a\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"75.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"70.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"72\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"77.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"76.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"69.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"78.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"92.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"74.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"71.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    66.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    64.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    68.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    64.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    63.7\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    58.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    63.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    56.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"60.6\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"56.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"None\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"green\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u767d\\u4fc4\\u7f57\\u65af\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"68.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"71.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"69.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"72.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"69.1\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"70\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"66.6\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"65.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"64.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"62.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    64.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    64.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    61.4\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    62.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    61.4\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    62.7\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    61.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    62.6\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"59.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"56.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"None\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"yellow\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u7231\\u6c99\\u5c3c\\u4e9a\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"74.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"71.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"78.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"73.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"74.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"69\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"69.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"62.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"67.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"66.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    63.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    62.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    59.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    61.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    63.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    57.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    55.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    60.4\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"54.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"56.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"None\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"purple\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u571f\\u8033\\u5176\",\n",
       "                \"\\u6ce2\\u5170\",\n",
       "                \"\\u514b\\u7f57\\u5730\\u4e9a\",\n",
       "                \"\\u767d\\u4fc4\\u7f57\\u65af\",\n",
       "                \"\\u7231\\u6c99\\u5c3c\\u4e9a\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u571f\\u8033\\u5176\": true,\n",
       "                \"\\u6ce2\\u5170\": true,\n",
       "                \"\\u514b\\u7f57\\u5730\\u4e9a\": true,\n",
       "                \"\\u767d\\u4fc4\\u7f57\\u65af\": true,\n",
       "                \"\\u7231\\u6c99\\u5c3c\\u4e9a\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"type\": \"category\",\n",
       "            \"name\": \"\\u5e74\\u4efd\",\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"1993\",\n",
       "                \"1994\",\n",
       "                \"1995\",\n",
       "                \"1996\",\n",
       "                \"1997\",\n",
       "                \"1998\",\n",
       "                \"1999\",\n",
       "                \"2000\",\n",
       "                \"2001\",\n",
       "                \"2002\",\n",
       "                \"2003\",\n",
       "                \"2004\",\n",
       "                \"2005\",\n",
       "                \"2006\",\n",
       "                \"2007\",\n",
       "                \"2008\",\n",
       "                \"2009\",\n",
       "                \"2010\",\n",
       "                \"2011\",\n",
       "                \"2012\",\n",
       "                \"2013\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\\u5e74\\u9f84\\u6807\\u51c6\\u5316\\u6bd4\\u7387\",\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"1993-2013\\u5e74\\u4e16\\u754c\\u524d5\\u7537\\u6027\\u80ba\\u764c\\u9ad8\\u53d1\\u56fd\\u5bb6\\u75c5\\u53d1\\u7387\\u60c5\\u51b5\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCON\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"5%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_1b768f031b5f412a8bd7ec1f0604d540.setOption(option_1b768f031b5f412a8bd7ec1f0604d540);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2347dcdbb80>"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Line(init_opts=opts.InitOpts(\n",
    "        width=\"1200px\",\n",
    "        height=\"600px\"\n",
    "    )\n",
    "    )\n",
    "    .add_xaxis(year_str)\n",
    "    .add_yaxis(\"土耳其\", y1_l, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"red\"))\n",
    "    .add_yaxis(\"波兰\", y2_l, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"blue\"))\n",
    "    .add_yaxis(\"克罗地亚\", y3_l, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"green\"))\n",
    "    .add_yaxis(\"白俄罗斯\", y4_l, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"yellow\"))\n",
    "    .add_yaxis(\"爱沙尼亚\", y5_l, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"purple\"))\n",
    "    .set_series_opts(\n",
    "        label_opts=opts.LabelOpts(is_show=False),\n",
    "    )\n",
    "    .set_global_opts(title_opts=opts.TitleOpts(\n",
    "        title=\"1993-2013年世界前5男性肺癌高发国家病发率情况\",\n",
    "        subtitle=\"数据来源：GLOBOCON\",\n",
    "        pos_right=\"center\",\n",
    "        pos_top=\"5%\"\n",
    "    ),\n",
    "                    xaxis_opts=opts.AxisOpts(type_=\"category\", name=\"年份\"),\n",
    "                    yaxis_opts=opts.AxisOpts(name=\"年龄标准化比率\"))\n",
    "#     .render(\"line_smooth.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "0dc8a477",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"d114d8df49b945eba5b0eaf007d78d3a\" style=\"width:1200px; height:600px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_d114d8df49b945eba5b0eaf007d78d3a = echarts.init(\n",
       "                    document.getElementById('d114d8df49b945eba5b0eaf007d78d3a'), 'white', {renderer: 'canvas'});\n",
       "                var option_d114d8df49b945eba5b0eaf007d78d3a = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u6cd5\\u56fd\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"79.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"82.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"79.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"80.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"89.1\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"85.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"89.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"91.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"95.6\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"98.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    102.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    101.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    96.6\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    95.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    94.7\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    98.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    93.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    96.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"98.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"95.6\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"-\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"red\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u8377\\u5170\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"85.1\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"86.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"82.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"84.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"83.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"84.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"90.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"90.1\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"93.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"91.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    92.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    93.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    92.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    95.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    97.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    97.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    98.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    96.6\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"101.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"101.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"100.7\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"blue\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u4e39\\u9ea6\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"74.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"75.6\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"77.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"81.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"79.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"82.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"83.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"83.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"86.8\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"90.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    86.4\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    85.4\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    85.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    87.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    86.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    100.4\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    121.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    105.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"92.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"91.6\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"94.4\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"green\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u51b0\\u5c9b\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"68.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"79.1\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"73.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"56.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"82.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"83.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"85.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"97.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"79.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"76.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    85.2\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    91.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    86.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    85.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    85.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    94.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    95.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    90.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"94.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"92.4\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"85.0\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"yellow\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u610f\\u5927\\u5229\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"clip\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"1993\",\n",
       "                    \"70.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1994\",\n",
       "                    \"65.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1995\",\n",
       "                    \"73.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1996\",\n",
       "                    \"83.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1997\",\n",
       "                    \"86.3\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1998\",\n",
       "                    \"90.7\"\n",
       "                ],\n",
       "                [\n",
       "                    \"1999\",\n",
       "                    \"93.2\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2000\",\n",
       "                    \"93.5\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2001\",\n",
       "                    \"92.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2002\",\n",
       "                    \"88.0\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2003\",\n",
       "                    88.9\n",
       "                ],\n",
       "                [\n",
       "                    \"2004\",\n",
       "                    86.8\n",
       "                ],\n",
       "                [\n",
       "                    \"2005\",\n",
       "                    83.5\n",
       "                ],\n",
       "                [\n",
       "                    \"2006\",\n",
       "                    85.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2007\",\n",
       "                    86.1\n",
       "                ],\n",
       "                [\n",
       "                    \"2008\",\n",
       "                    95.7\n",
       "                ],\n",
       "                [\n",
       "                    \"2009\",\n",
       "                    92.6\n",
       "                ],\n",
       "                [\n",
       "                    \"2010\",\n",
       "                    93.3\n",
       "                ],\n",
       "                [\n",
       "                    \"2011\",\n",
       "                    \"94.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2012\",\n",
       "                    \"91.9\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2013\",\n",
       "                    \"-\"\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\",\n",
       "                \"color\": \"purple\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u6cd5\\u56fd\",\n",
       "                \"\\u8377\\u5170\",\n",
       "                \"\\u4e39\\u9ea6\",\n",
       "                \"\\u51b0\\u5c9b\",\n",
       "                \"\\u610f\\u5927\\u5229\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u6cd5\\u56fd\": true,\n",
       "                \"\\u8377\\u5170\": true,\n",
       "                \"\\u4e39\\u9ea6\": true,\n",
       "                \"\\u51b0\\u5c9b\": true,\n",
       "                \"\\u610f\\u5927\\u5229\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"type\": \"category\",\n",
       "            \"name\": \"\\u5e74\\u4efd\",\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"1993\",\n",
       "                \"1994\",\n",
       "                \"1995\",\n",
       "                \"1996\",\n",
       "                \"1997\",\n",
       "                \"1998\",\n",
       "                \"1999\",\n",
       "                \"2000\",\n",
       "                \"2001\",\n",
       "                \"2002\",\n",
       "                \"2003\",\n",
       "                \"2004\",\n",
       "                \"2005\",\n",
       "                \"2006\",\n",
       "                \"2007\",\n",
       "                \"2008\",\n",
       "                \"2009\",\n",
       "                \"2010\",\n",
       "                \"2011\",\n",
       "                \"2012\",\n",
       "                \"2013\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\\u5e74\\u9f84\\u6807\\u51c6\\u5316\\u6bd4\\u7387\",\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"1993-2013\\u5e74\\u4e16\\u754c\\u524d5\\u5973\\u6027\\u4e73\\u817a\\u764c\\u9ad8\\u53d1\\u56fd\\u5bb6\\u75c5\\u53d1\\u7387\\u60c5\\u51b5\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCON\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"5%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_d114d8df49b945eba5b0eaf007d78d3a.setOption(option_d114d8df49b945eba5b0eaf007d78d3a);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x2347dcdbc70>"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Line(init_opts=opts.InitOpts(\n",
    "        width=\"1200px\",\n",
    "        height=\"600px\"\n",
    "    )\n",
    "    )\n",
    "    .add_xaxis(year_str)\n",
    "    .add_yaxis(\"法国\", y1_b, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"red\"))\n",
    "    .add_yaxis(\"荷兰\", y2_b, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"blue\"))\n",
    "    .add_yaxis(\"丹麦\", y3_b, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"green\"))\n",
    "    .add_yaxis(\"冰岛\", y4_b, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"yellow\"))\n",
    "    .add_yaxis(\"意大利\", y5_b, is_smooth=True, linestyle_opts=opts.LineStyleOpts(color=\"purple\"))\n",
    "    .set_series_opts(\n",
    "        label_opts=opts.LabelOpts(is_show=False),\n",
    "    )\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(\n",
    "            title=\"1993-2013年世界前5女性乳腺癌高发国家病发率情况\",\n",
    "            subtitle=\"数据来源：GLOBOCON\",\n",
    "            pos_right=\"center\",\n",
    "            pos_top=\"5%\"),\n",
    "        xaxis_opts=opts.AxisOpts(type_=\"category\", name=\"年份\"),\n",
    "        yaxis_opts=opts.AxisOpts(name=\"年龄标准化比率\")\n",
    "                    )\n",
    "#     .render(\"line_smooth.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f7ca6845",
   "metadata": {},
   "source": [
    "## 散点图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "28edd6bc",
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"4805f28020fc49ceac06f8553d8d65bf\" style=\"width:1000px; height:600px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_4805f28020fc49ceac06f8553d8d65bf = echarts.init(\n",
       "                    document.getElementById('4805f28020fc49ceac06f8553d8d65bf'), 'white', {renderer: 'canvas'});\n",
       "                var option_4805f28020fc49ceac06f8553d8d65bf = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"scatter\",\n",
       "            \"name\": \"2020\\u5e74\",\n",
       "            \"symbolSize\": 10,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Low HDI\",\n",
       "                    650423\n",
       "                ],\n",
       "                [\n",
       "                    \"Medium HDI\",\n",
       "                    2326749\n",
       "                ],\n",
       "                [\n",
       "                    \"High HDI\",\n",
       "                    7371321\n",
       "                ],\n",
       "                [\n",
       "                    \"Very High HDI\",\n",
       "                    8934818\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"right\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"scatter\",\n",
       "            \"name\": \"2040\\u5e74\",\n",
       "            \"symbolSize\": 10,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Low HDI\",\n",
       "                    1274930\n",
       "                ],\n",
       "                [\n",
       "                    \"Medium HDI\",\n",
       "                    3832536\n",
       "                ],\n",
       "                [\n",
       "                    \"High HDI\",\n",
       "                    11511711\n",
       "                ],\n",
       "                [\n",
       "                    \"Very High HDI\",\n",
       "                    11812586\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"right\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"2020\\u5e74\",\n",
       "                \"2040\\u5e74\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"2020\\u5e74\": true,\n",
       "                \"2040\\u5e74\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"Low HDI\",\n",
       "                \"Medium HDI\",\n",
       "                \"High HDI\",\n",
       "                \"Very High HDI\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2020-2040\\u5e74\\u9884\\u8ba1\\u65b0\\u589e\\u75c5\\u4f8b\\u6570\",\n",
       "            \"subtext\": \"\\u6570\\u636e\\u6765\\u6e90\\uff1aGLOBOCON\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"4%\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 650000,\n",
       "        \"max\": 12000000,\n",
       "        \"inRange\": {\n",
       "            \"symbolSize\": [\n",
       "                20,\n",
       "                50\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 140,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_4805f28020fc49ceac06f8553d8d65bf.setOption(option_4805f28020fc49ceac06f8553d8d65bf);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x23403d86250>"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = pd.read_csv('./data/estimated-number-from-2020-to-2040.csv',encoding='gbk')\n",
    "\n",
    "c = (\n",
    "    Scatter(\n",
    "        init_opts=opts.InitOpts(\n",
    "            width='1000px',\n",
    "            height='600px'\n",
    "        )\n",
    "    )\n",
    "    .add_xaxis(df['Label'].values.tolist())\n",
    "    .add_yaxis(\"2020年\", df['2020'].values.tolist())\n",
    "    .add_yaxis(\"2040年\", df['2040'].values.tolist())\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(\n",
    "            title=\"2020-2040年预计新增病例数\",\n",
    "            subtitle=\"数据来源：GLOBOCON\",\n",
    "            pos_right=\"center\",\n",
    "            pos_top=\"4%\"),\n",
    "        visualmap_opts=opts.VisualMapOpts(type_=\"size\", max_=12000000, min_=650000),\n",
    "    )\n",
    "#     .render(\"scatter_visualmap_size.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "708fcd49",
   "metadata": {
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "source": [
    "## 水滴图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "78458c36",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[96.0155, 64.7185, 56.1689, 32.2085]"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['Change in %'].values.tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "id": "61371e25",
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "l1 = (\n",
    "    Liquid(\n",
    "        init_opts=opts.InitOpts(\n",
    "            width='1200px',\n",
    "            height='1200px'\n",
    "        )\n",
    "    )\n",
    "    .add(\"lq\", [0.96], center=[\"25%\", \"30%\"], is_outline_show=False, color=['#DC143C'], shape=SymbolType.ARROW)\n",
    "    .set_global_opts(title_opts=opts.TitleOpts())\n",
    ")\n",
    "\n",
    "l2 = Liquid().add(\n",
    "    \"lq\",\n",
    "    [0.64],\n",
    "    center=[\"70%\", \"30%\"],\n",
    "    is_outline_show=False,\n",
    "    color=['#FF8C00'],\n",
    "    shape=SymbolType.ARROW,\n",
    "    label_opts=opts.LabelOpts(\n",
    "        font_size=50,\n",
    "        formatter=JsCode(\n",
    "            \"\"\"function (param) {\n",
    "                    return (Math.floor(param.value * 10000) / 100) + '%';\n",
    "                }\"\"\"\n",
    "        ),\n",
    "        position=\"inside\",\n",
    "    ),\n",
    ")\n",
    "\n",
    "l3 = Liquid().add(\n",
    "    \"lq\",\n",
    "    [0.56],\n",
    "    center=[\"25%\", \"75%\"],\n",
    "    is_outline_show=False,\n",
    "    color=['#FFD700'],\n",
    "    shape=SymbolType.ARROW,\n",
    "    label_opts=opts.LabelOpts(\n",
    "        font_size=50,\n",
    "        formatter=JsCode(\n",
    "            \"\"\"function (param) {\n",
    "                    return (Math.floor(param.value * 10000) / 100) + '%';\n",
    "                }\"\"\"\n",
    "        ),\n",
    "        position=\"inside\",\n",
    "    ),\n",
    ")\n",
    "\n",
    "l4 = Liquid().add(\n",
    "    \"lq\",\n",
    "    [0.32],\n",
    "    center=[\"70%\", \"75%\"],\n",
    "    is_outline_show=False,\n",
    "    color=['#32CD32'],\n",
    "    shape=SymbolType.ARROW,\n",
    "    label_opts=opts.LabelOpts(\n",
    "        font_size=50,\n",
    "        formatter=JsCode(\n",
    "            \"\"\"function (param) {\n",
    "                    return (Math.floor(param.value * 10000) / 100) + '%';\n",
    "                }\"\"\"\n",
    "        ),\n",
    "        position=\"inside\",\n",
    "    ),\n",
    ")\n",
    "\n",
    "grid = Grid().add(l1, grid_opts=opts.GridOpts()).add(l2, grid_opts=opts.GridOpts()).add(l3, grid_opts=opts.GridOpts()).add(l4, grid_opts=opts.GridOpts())\n",
    "grid.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "77dcdaf1",
   "metadata": {},
   "source": [
    "## 饼图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "2dd1f436",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"0d465b9b6def416d91ff04348d290417\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_0d465b9b6def416d91ff04348d290417 = echarts.init(\n",
       "                    document.getElementById('0d465b9b6def416d91ff04348d290417'), 'white', {renderer: 'canvas'});\n",
       "                var option_0d465b9b6def416d91ff04348d290417 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"pie\",\n",
       "            \"clockwise\": true,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Obesity\",\n",
       "                    \"value\": 482500\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Infection\",\n",
       "                    \"value\": 2258600\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Alcohol\",\n",
       "                    \"value\": 739000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"UV Radiation\",\n",
       "                    \"value\": 168050\n",
       "                }\n",
       "            ],\n",
       "            \"radius\": [\n",
       "                \"0%\",\n",
       "                \"75%\"\n",
       "            ],\n",
       "            \"center\": [\n",
       "                \"50%\",\n",
       "                \"50%\"\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8,\n",
       "                \"formatter\": \"{b}: {c}\"\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"Obesity\",\n",
       "                \"Infection\",\n",
       "                \"Alcohol\",\n",
       "                \"UV Radiation\"\n",
       "            ],\n",
       "            \"selected\": {},\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"Pie-\\u57fa\\u672c\\u793a\\u4f8b\",\n",
       "            \"right\": \"center\",\n",
       "            \"top\": \"bottom\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_0d465b9b6def416d91ff04348d290417.setOption(option_0d465b9b6def416d91ff04348d290417);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x250b8126400>"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "c = (\n",
    "    Pie()\n",
    "    .add(\"\", pie_s)\n",
    "    .set_global_opts(title_opts=opts.TitleOpts(\n",
    "        title=\"Pie-基本示例\",\n",
    "    pos_right=\"center\",\n",
    "    pos_top=\"bottom\"))\n",
    "    .set_series_opts(label_opts=opts.LabelOpts(formatter=\"{b}: {c}\"))\n",
    "#     .render(\"pie_base.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "6b344cd6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"996c75795a694a8c97315c9a509f720c\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_996c75795a694a8c97315c9a509f720c = echarts.init(\n",
       "                    document.getElementById('996c75795a694a8c97315c9a509f720c'), 'white', {renderer: 'canvas'});\n",
       "                var option_996c75795a694a8c97315c9a509f720c = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"pie\",\n",
       "            \"clockwise\": true,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Obesity\",\n",
       "                    \"value\": 110000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Infection\",\n",
       "                    \"value\": 1500000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Alcohol\",\n",
       "                    \"value\": 430000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"UV Radiation\",\n",
       "                    \"value\": 2180\n",
       "                }\n",
       "            ],\n",
       "            \"radius\": [\n",
       "                60,\n",
       "                80\n",
       "            ],\n",
       "            \"center\": [\n",
       "                \"20%\",\n",
       "                \"30%\"\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"pie\",\n",
       "            \"clockwise\": true,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Obesity\",\n",
       "                    \"value\": 15000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Infection\",\n",
       "                    \"value\": 260000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Alcohol\",\n",
       "                    \"value\": 23000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"UV Radiation\",\n",
       "                    \"value\": 2790\n",
       "                }\n",
       "            ],\n",
       "            \"radius\": [\n",
       "                60,\n",
       "                80\n",
       "            ],\n",
       "            \"center\": [\n",
       "                \"50%\",\n",
       "                \"30%\"\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"pie\",\n",
       "            \"clockwise\": true,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Obesity\",\n",
       "                    \"value\": 150000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Infection\",\n",
       "                    \"value\": 240000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Alcohol\",\n",
       "                    \"value\": 99000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"UV Radiation\",\n",
       "                    \"value\": 71180\n",
       "                }\n",
       "            ],\n",
       "            \"radius\": [\n",
       "                60,\n",
       "                80\n",
       "            ],\n",
       "            \"center\": [\n",
       "                \"10%\",\n",
       "                \"70%\"\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"pie\",\n",
       "            \"clockwise\": true,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Obesity\",\n",
       "                    \"value\": 200000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Infection\",\n",
       "                    \"value\": 250000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Alcohol\",\n",
       "                    \"value\": 180000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"UV Radiation\",\n",
       "                    \"value\": 78000\n",
       "                }\n",
       "            ],\n",
       "            \"radius\": [\n",
       "                60,\n",
       "                80\n",
       "            ],\n",
       "            \"center\": [\n",
       "                \"35%\",\n",
       "                \"70%\"\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"pie\",\n",
       "            \"clockwise\": true,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Obesity\",\n",
       "                    \"value\": 7500\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Infection\",\n",
       "                    \"value\": 8600\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Alcohol\",\n",
       "                    \"value\": 7000\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"UV Radiation\",\n",
       "                    \"value\": 13900\n",
       "                }\n",
       "            ],\n",
       "            \"radius\": [\n",
       "                60,\n",
       "                80\n",
       "            ],\n",
       "            \"center\": [\n",
       "                \"60%\",\n",
       "                \"70%\"\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"Obesity\",\n",
       "                \"Infection\",\n",
       "                \"Alcohol\",\n",
       "                \"UV Radiation\"\n",
       "            ],\n",
       "            \"selected\": {},\n",
       "            \"type\": \"scroll\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"80%\",\n",
       "            \"top\": \"20%\",\n",
       "            \"orient\": \"vertical\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"Pie-\\u591a\\u997c\\u56fe\\u57fa\\u672c\\u793a\\u4f8b\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_996c75795a694a8c97315c9a509f720c.setOption(option_996c75795a694a8c97315c9a509f720c);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x250b9fb3b20>"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fn = \"\"\"\n",
    "    function(params) {\n",
    "        if(params.name == '其他')\n",
    "            return '\\\\n\\\\n\\\\n' + params.name + ' : ' + params.value + '%';\n",
    "        return params.name + ' : ' + params.value + '%';\n",
    "    }\n",
    "    \"\"\"\n",
    "\n",
    "def new_label_opts():\n",
    "    return opts.LabelOpts(formatter=JsCode(fn), position=\"center\")\n",
    "\n",
    "\n",
    "c = (\n",
    "    Pie()\n",
    "    .add(\n",
    "        \"\",\n",
    "        a,\n",
    "        center=[\"20%\", \"30%\"],\n",
    "        radius=[60, 80],\n",
    "        label_opts=new_label_opts(),\n",
    "    )\n",
    "    .add(\n",
    "        \"\",\n",
    "        af,\n",
    "        center=[\"50%\", \"30%\"],\n",
    "        radius=[60, 80],\n",
    "        label_opts=new_label_opts(),\n",
    "    )\n",
    "    .add(\n",
    "        \"\",\n",
    "        am,\n",
    "        center=[\"10%\", \"70%\"],\n",
    "        radius=[60, 80],\n",
    "        label_opts=new_label_opts(),\n",
    "    )\n",
    "    .add(\n",
    "        \"\",\n",
    "        eu,\n",
    "        center=[\"35%\", \"70%\"],\n",
    "        radius=[60, 80],\n",
    "        label_opts=new_label_opts(),\n",
    "    )\n",
    "    .add(\n",
    "        \"\",\n",
    "        oc,\n",
    "        center=[\"60%\", \"70%\"],\n",
    "        radius=[60, 80],\n",
    "        label_opts=new_label_opts(),\n",
    "    )\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(title=\"Pie-多饼图基本示例\"),\n",
    "        legend_opts=opts.LegendOpts(\n",
    "            type_=\"scroll\", pos_top=\"20%\", pos_left=\"80%\", orient=\"vertical\"\n",
    "        ),\n",
    "    )\n",
    "    .set_series_opts(\n",
    "        label_opts=opts.LabelOpts(is_show=False)\n",
    "    )\n",
    "#     .render(\"mutiple_pie.html\")\n",
    ")\n",
    "\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8291223e",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
